Changeset 4935:d3db98775a3d in orange


Ignore:
Timestamp:
07/06/08 16:21:59 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
7c4b189e8a1bf44332f878e7cf7daab04f86ed24
Message:
  • fixed a few bugs presumably due to different signal triggers in Qt 4
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWImpute.py

    r4815 r4935  
    210210        if not data or not len(data.domain): 
    211211            self.indibox.setDisabled(True) 
     212            self.data = None 
     213            self.send("Examples", data) 
    212214            self.attrList.clear() 
    213215            # here's the trick: send the data on, even if it doesn't have any attributes 
    214216            # but set self.data to None to disable the widget 
    215             self.data = None 
    216             self.send("Examples", data) 
    217217        else: 
    218218            self.indibox.setDisabled(False) 
     
    230230                    self.attrList.addItem(QListWidgetItem(self.attrIcons[attr.varType], attr.name)) 
    231231 
    232                 if self.selectedAttr < self.attrList.count(): 
     232                if 0 <= self.selectedAttr < self.attrList.count(): 
    233233                    self.attrList.setCurrentRow(self.selectedAttr) 
    234234                else: 
Note: See TracChangeset for help on using the changeset viewer.