Changeset 1426:0748ffb514c0 in orange-bioinformatics


Ignore:
Timestamp:
06/23/11 13:49:28 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
b978a15939429c92420814b345528eeaf33fdd80
Message:

Check if proxyModel is not None in filter method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGEODatasets.py

    r1405 r1426  
    405405        filter_string = unicode(self.filterLineEdit.text(), errors="ignore") 
    406406        proxyModel = self.treeWidget.model() 
    407         strings = filter_string.lower().strip().split() 
    408         proxyModel.setFilterFixedStrings(strings) 
    409         self.updateInfo() 
     407        if proxyModel: 
     408            strings = filter_string.lower().strip().split() 
     409            proxyModel.setFilterFixedStrings(strings) 
     410            self.updateInfo() 
    410411 
    411412    def selectedSamples(self): 
Note: See TracChangeset for help on using the changeset viewer.