Ignore:
Timestamp:
Jan 8, 2019 3:44:06 AM (5 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/MainWindow/GuiManager.py

    rb1626bea rd1ad101  
    10491049        Send the request to the DataExplorer for updating the theory model. 
    10501050        """ 
    1051         self.filesWidget.updateTheoryFromPerspective(index) 
     1051        item = self.filesWidget.updateTheoryFromPerspective(index) 
     1052        # Now notify the perspective that the item was/wasn't replaced 
     1053        per = self.perspective() 
     1054        if not isinstance(per, FittingWindow): 
     1055            # currently only fitting supports generation of theories. 
     1056            return 
     1057        per.currentTab.setTheoryItem(item) 
    10521058 
    10531059    def deleteIntermediateTheoryPlotsByModelID(self, model_id): 
Note: See TracChangeset for help on using the changeset viewer.