Changeset 4671:983373239f8e in orange


Ignore:
Timestamp:
05/19/08 01:14:03 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
aaee339edbfa146314dc7894de76c30f176117c0
Message:
  • fixed a problem in lambda which caused wrongly connected checkboxes for deactivation of conditions
File:
1 edited

Legend:

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

    r4564 r4671  
    627627                cw = QCheckBox(str(len(cond.operator.getFilter(self.data.domain, cond.varName, cond.val1, cond.val2, cond.negated, cond.caseSensitive)(self.data))), self) 
    628628                cw.setChecked(cond.enabled) 
    629                 self.connect(cw, SIGNAL("toggled(bool)"), lambda val: self.criteriaActiveChange(cond, val)) 
     629                self.connect(cw, SIGNAL("toggled(bool)"), lambda val, cond=cond: self.criteriaActiveChange(cond, val)) 
    630630 
    631631            self.criteriaTable.setCellWidget(row, 0, cw) 
Note: See TracChangeset for help on using the changeset viewer.