Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py

    re20870bc rc0a3b22e  
    127127        Callback for running the mask editor 
    128128        """ 
    129         self.parent.communicate.maskEditorSignal.emit(self.logic.data) 
    130         pass 
     129        if isinstance(self.logic.data, Data2D): 
     130            self.parent.communicate.maskEditorSignal.emit(self.logic.data) 
    131131 
    132132    def onRangeReset(self): 
     
    157157        Enable/disable various UI elements based on data loaded 
    158158        """ 
     159        is2Ddata = isinstance(self.logic.data, Data2D) 
    159160        self.boxWeighting.setEnabled(True) 
    160         self.cmdMaskEdit.setEnabled(True) 
     161        self.cmdMaskEdit.setEnabled(is2Ddata) 
    161162        # Switch off txtNpts related controls 
    162163        self.txtNpts.setEnabled(False) 
Note: See TracChangeset for help on using the changeset viewer.