Changeset 1923:f097c4683c3d in orange-bioinformatics


Ignore:
Timestamp:
12/02/13 14:11:08 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed an AttributeError (uninitialized 'currentAnnotatedCategories' attribute).

File:
1 edited

Legend:

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

    r1918 r1923  
    246246 
    247247        self.updatingAnnotationsFlag = False 
     248        self.currentAnnotatedCategories = [] 
    248249 
    249250    def updateHierarchy(self): 
     
    362363        self.categoriesCheckState = self.getHierarchyCheckState() 
    363364        categories = self.selectedCategories() 
    364          
    365         if not set(categories) <= set(self.currentAnnotatedCategories): 
    366             self.updateAnnotations() 
    367         else: 
    368             self.filterAnnotationsChartView() 
    369          
     365 
     366        if self.data is not None: 
     367            if not set(categories) <= set(self.currentAnnotatedCategories): 
     368                self.updateAnnotations() 
     369            else: 
     370                self.filterAnnotationsChartView() 
    370371 
    371372    def updateGeneMatcherSettings(self): 
Note: See TracChangeset for help on using the changeset viewer.