diff --git a/src/sas/qtgui/MainWindow/DataExplorer.py b/src/sas/qtgui/MainWindow/DataExplorer.py index 3484817a6b..0f845155b4 100644 --- a/src/sas/qtgui/MainWindow/DataExplorer.py +++ b/src/sas/qtgui/MainWindow/DataExplorer.py @@ -2069,7 +2069,7 @@ def updateTheoryFromPerspective(self, model_item): self.theory_model.appendRow(model_item) return model_item - def deleteIntermediateTheoryPlotsByModelID(self, model_id): + def deleteIntermediateTheoryPlotsByTabId(self, tab_id): """Given a model's ID, deletes all items in the theory item model which reference the same ID. Useful in the case of intermediate results disappearing when changing calculations (in which case you don't want them to be retained in the list).""" diff --git a/src/sas/qtgui/MainWindow/GuiManager.py b/src/sas/qtgui/MainWindow/GuiManager.py index e9dd57b377..3dbfe5f88a 100644 --- a/src/sas/qtgui/MainWindow/GuiManager.py +++ b/src/sas/qtgui/MainWindow/GuiManager.py @@ -697,7 +697,7 @@ def addCallbacks(self): self.communicate.progressBarUpdateSignal.connect(self.updateProgressBar) self.communicate.perspectiveChangedSignal.connect(self.perspectiveChanged) self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) - self.communicate.deleteIntermediateTheoryPlotsSignal.connect(self.deleteIntermediateTheoryPlotsByModelID) + self.communicate.deleteIntermediateTheoryPlotsSignal.connect(self.deleteIntermediateTheoryPlotsByTabId) self.communicate.plotRequestedSignal.connect(self.showPlot) self.communicate.plotFromNameSignal.connect(self.showPlotFromName) self.communicate.updateModelFromDataOperationPanelSignal.connect(self.updateModelFromDataOperationPanel) @@ -1331,7 +1331,7 @@ def updateTheoryFromPerspective(self, index): return per.currentTab.setTheoryItem(item) - def deleteIntermediateTheoryPlotsByModelID(self, tab_id): + def deleteIntermediateTheoryPlotsByTabId(self, tab_id): """ Catch the signal to delete items in the Theory item model which correspond to a model ID. Send the request to the DataExplorer for updating the theory model.