Ignore:
Timestamp:
Jan 8, 2019 5:44:06 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
bbcf9f0
Parents:
10786bc2
Message:

Be careful with standard item lifetime. SASVIEW-1231

File:
1 edited

Legend:

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

    rce67f35 rd1ad101  
    26192619        """ 
    26202620        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) 
     2621        # Modify the item or add it if new 
     2622        theory_item = GuiUtils.createModelItemWithPlot(fitted_data, name=name) 
     2623        self.communicate.updateTheoryFromPerspectiveSignal.emit(theory_item) 
     2624 
     2625    def setTheoryItem(self, item): 
     2626        """ 
     2627        Reset the theory item based on the data explorer update 
     2628        """ 
     2629        self.theory_item = item 
    26242630 
    26252631    def nameFromData(self, fitted_data): 
Note: See TracChangeset for help on using the changeset viewer.