Changeset 1912:83600a89de4c in orange-bioinformatics


Ignore:
Timestamp:
11/19/13 16:40:04 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed an error on widget input disconnect.

The 'data_hints.get_hint' function raises an error if passed None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orangecontrib/bio/widgets/OWSelectGenes.py

    r1911 r1912  
    352352        self._changedFlag = True 
    353353        self._updateCompletionModel() 
    354         self.taxid = data_hints.get_hint(data, "taxid", None) 
     354        if data is not None: 
     355            self.taxid = data_hints.get_hint(data, "taxid", None) 
     356        else: 
     357            self.taxid = None 
     358 
    355359        self.openContext("", data) 
    356360 
Note: See TracChangeset for help on using the changeset viewer.