Changeset 2d47985 in sasview


Ignore:
Timestamp:
Sep 12, 2018 3:32:12 AM (2 months ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Pr_fixes, ESS_GUI_iss879, ESS_GUI_project_save
Children:
33b3e4d
Parents:
a54bbf2b
Message:

Fixed poly/magnet param update on model change for specific cases. SASVIEW-1056

File:
1 edited

Legend:

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

    ra54bbf2b r2d47985  
    23422342 
    23432343        # add polydisperse parameters if asked 
    2344         if self.chkPolydispersity.isChecked(): 
     2344        if self.chkPolydispersity.isChecked() and self._poly_model.rowCount() > 0: 
    23452345            for key, value in self.poly_params.items(): 
    23462346                model.setParam(key, value) 
    23472347        # add magnetic params if asked 
    23482348        if self.chkMagnetism.isChecked(): 
    2349             for key, value in self.magnet_params.items(): 
     2349            for key, value in self.magnet_params.items() and self._magnet_model.rowCount() > 0: 
    23502350                model.setParam(key, value) 
    23512351 
Note: See TracChangeset for help on using the changeset viewer.