Changeset f4aa7a8 in sasview for src


Ignore:
Timestamp:
Sep 5, 2018 4:46:08 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
5aad7a5
Parents:
d738feb
git-author:
Piotr Rozyczko <rozyczko@…> (09/05/18 04:45:20)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/05/18 04:46:08)
Message:

More checks for model combo being disabled. SASVIEW-1015

File:
1 edited

Legend:

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

    r287d356 rf4aa7a8  
    958958        model = self.cbModel.currentText() 
    959959 
    960         # empty combobox forced to be read 
     960        # Assure the control is active 
     961        if not self.cbModel.isEnabled(): 
     962            return 
     963        # Empty combobox forced to be read 
    961964        if not model: 
    962965            return 
     
    11121115            self.disableModelCombo() 
    11131116            self.enableStructureCombo() 
     1117            # set the index to 0 
     1118            self.cbStructureFactor.setCurrentIndex(0) 
     1119            self.model_parameters = None 
    11141120            self._model_model.clear() 
    11151121            return 
Note: See TracChangeset for help on using the changeset viewer.