Changeset 1748:3a6c3d41aaee in orange-bioinformatics for _bioinformatics/widgets/OWGsea.py


Ignore:
Timestamp:
04/18/13 14:09:39 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Test for the presence of 'self.signalManager'.

A default global signalManager is no longer provided by OWBaseWidget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWGsea.py

    r1726 r1748  
    272272            self.organismComboBox.addItems(items) 
    273273        finally: 
    274             self.signalManager.freeze(self).pop() #setFreeze(0) 
     274            if self.signalManager: 
     275                self.signalManager.freeze(self).pop() 
    275276 
    276277 
     
    319320        self.organismComboBox = cb = OWGUI.comboBox(box, self, "organismIndex", items=[], debuggingEnabled=0) #changed 
    320321        cb.setMaximumWidth(200) 
    321         self.signalManager.freeze(self).push() #setFreeze(1) 
     322 
     323        if self.signalManager: 
     324            self.signalManager.freeze(self).push() 
    322325        QTimer.singleShot(100, self.UpdateOrganismComboBox) 
    323326  
Note: See TracChangeset for help on using the changeset viewer.