Changeset 8145:c4103a2d417a in orange


Ignore:
Timestamp:
08/04/11 11:02:33 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
443bea47c10d989c0945ab4c8668093696a5a139
Message:

Check for reportButton in updateVisibleColumns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Classify/OWCN2RulesViewer.py

    r8042 r8145  
    342342            self.tableView.horizontalHeader().setSectionHidden(i, not visible) 
    343343            anyVisible = anyVisible or visible 
    344         self.reportButton.setEnabled(anyVisible) 
     344         
     345        # report button is not available if not running canvas 
     346        if hasattr(self, "reportButton"): 
     347            self.reportButton.setEnabled(anyVisible) 
    345348 
    346349     
Note: See TracChangeset for help on using the changeset viewer.