Changeset 73665a8 in sasview


Ignore:
Timestamp:
Sep 7, 2018 8:01:07 AM (11 days ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Pr_fixes, ESS_GUI_iss1032, ESS_GUI_iss1033, ESS_GUI_iss1034, ESS_GUI_iss1052, ESS_GUI_iss966, ESS_GUI_poly_plot2
Children:
8136e09, 60d55a7
Parents:
66d4370
Message:

block main model update when sending read-only polydisp. data.

File:
1 edited

Legend:

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

    r66d4370 r73665a8  
    11971197            self.updateData() 
    11981198 
     1199        # update in param model 
     1200        if model_column in [delegate.poly_pd, delegate.poly_error, delegate.poly_min, delegate.poly_max]: 
     1201            row = self.getRowFromName(parameter_name) 
     1202            param_item = self._model_model.item(row) 
     1203            self._model_model.blockSignals(True) 
     1204            param_item.child(0).child(0, model_column).setText(item.text()) 
     1205            self._model_model.blockSignals(False) 
     1206 
    11991207    def onMagnetModelChange(self, item): 
    12001208        """ 
     
    25582566        def updateFunctionCaption(row): 
    25592567            # Utility function for update of polydispersity function name in the main model 
     2568            self._model_model.blockSignals(True) 
    25602569            param_name = str(self._model_model.item(row, 0).text()) 
     2570            self._model_model.blockSignals(False) 
    25612571            if param_name !=  param.name: 
    25622572                return 
    25632573            # Modify the param value 
     2574            self._model_model.blockSignals(True) 
    25642575            if self.has_error_column: 
    25652576                # err column changes the indexing 
     
    25672578            else: 
    25682579                self._model_model.item(row, 0).child(0).child(0,4).setText(combo_string) 
     2580            self._model_model.blockSignals(False) 
    25692581 
    25702582        if combo_string == 'array': 
Note: See TracChangeset for help on using the changeset viewer.