Ignore:
File:
1 edited

Legend:

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

    rce67f35 rbbcf9f0  
    284284        # Data for chosen model 
    285285        self.model_data = None 
     286        self._previous_model_index = 0 
    286287 
    287288        # Which shell is being currently displayed? 
     
    20202021        React to changes in the smearing widget 
    20212022        """ 
     2023        # update display 
     2024        smearing, accuracy, smearing_min, smearing_max = self.smearing_widget.state() 
     2025        self.lblCurrentSmearing.setText(smearing) 
    20222026        self.calculateQGridForModel() 
    20232027 
     
    26192623        """ 
    26202624        name = self.nameFromData(fitted_data) 
    2621         # Notify the GUI manager so it can create the theory model in DataExplorer 
    2622         self.theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
    2623         self.communicate.updateTheoryFromPerspectiveSignal.emit(self.theory_item) 
     2625        # Modify the item or add it if new 
     2626        theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
     2627        self.communicate.updateTheoryFromPerspectiveSignal.emit(theory_item) 
     2628 
     2629    def setTheoryItem(self, item): 
     2630        """ 
     2631        Reset the theory item based on the data explorer update 
     2632        """ 
     2633        self.theory_item = item 
    26242634 
    26252635    def nameFromData(self, fitted_data): 
Note: See TracChangeset for help on using the changeset viewer.