Changeset b8bdbcc in sasview for src/sas


Ignore:
Timestamp:
Mar 28, 2019 10:20:50 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_opencl
Children:
b016f17
Parents:
e900a47
Message:

Remember the fit state on structure factor change. SASVIEW-1282

File:
1 edited

Legend:

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

    re900a47 rb8bdbcc  
    11611161        if category == CATEGORY_STRUCTURE: 
    11621162            model = None 
     1163        # copy original clipboard 
     1164        cb = QtWidgets.QApplication.clipboard() 
     1165        cb_text = cb.text() 
     1166        # get the screenshot of the current param state 
     1167        self.onCopyToClipboard("") 
    11631168 
    11641169        # Reset parameters to fit 
     
    11681173 
    11691174        self.respondToModelStructure(model=model, structure_factor=structure) 
     1175        # recast the original parameters into the model 
     1176        self.onParameterPaste() 
     1177        # revert to the original clipboard 
     1178        cb.setText(cb_text) 
    11701179 
    11711180    def resetParametersToFit(self): 
Note: See TracChangeset for help on using the changeset viewer.