Changeset 085409e3 in sasview for src/sas/qtgui/Perspectives/Fitting


Ignore:
Timestamp:
Sep 25, 2018 8:21:53 AM (6 years ago)
Author:
Laura Forster <Awork@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9b9ec10
Parents:
2dce1d8
Message:

Fixed Copy and Paste bugs

There were several problems caused by the FittingWidget? being able to access all the open FitPage? tabs, meaning when Copy or Paste was used it was accessing multiple sets of params and models.

The functions are now being passed the currently open tab, not all open tabs.

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

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

    rdee9e5f r085409e3  
    6363        self.fittingStoppedSignal.connect(self.onFittingStopped) 
    6464 
     65        self.communicate.copyFitParamsSignal.connect(self.onParamCopy) 
     66        self.communicate.pasteFitParamsSignal.connect(self.onParamPaste) 
     67 
    6568        # Perspective window not allowed to close by default 
    6669        self._allow_close = False 
     
    9497 
    9598        self._allow_close = value 
     99 
     100    def onParamCopy(self): 
     101        self.currentTab.onParameterCopy("") 
     102 
     103    def onParamPaste(self): 
     104        self.currentTab.onParameterPaste() 
    96105 
    97106    def closeEvent(self, event): 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r2dce1d8 r085409e3  
    556556        self.communicate.saveAnalysisSignal.connect(self.savePageState) 
    557557        self.smearing_widget.smearingChangedSignal.connect(self.onSmearingOptionsUpdate) 
    558         self.communicate.copyFitParamsSignal.connect(self.onParameterCopy) 
    559         self.communicate.pasteFitParamsSignal.connect(self.onParameterPaste) 
    560558 
    561559        # Communicator signal 
Note: See TracChangeset for help on using the changeset viewer.