From ec497ba1348caff4c9e41dbe75514b4068531e31 Mon Sep 17 00:00:00 2001 From: James Crake-Merani Date: Mon, 20 Jan 2025 08:47:17 +0000 Subject: [PATCH] Looks like this commit was missing. --- src/sas/qtgui/MainWindow/DataExplorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sas/qtgui/MainWindow/DataExplorer.py b/src/sas/qtgui/MainWindow/DataExplorer.py index 0f845155b4..86beef7152 100644 --- a/src/sas/qtgui/MainWindow/DataExplorer.py +++ b/src/sas/qtgui/MainWindow/DataExplorer.py @@ -2081,8 +2081,8 @@ def deleteIntermediateTheoryPlotsByTabId(self, tab_id): return match = GuiUtils.theory_plot_ID_pattern.match(data.id) if match: - item_model_id = match.groups()[-1] - if item_model_id == model_id: + item_tab_id = match.groups()[0] + if item_tab_id == tab_id: # Only delete those identified as an intermediate plot if match.groups()[2] not in (None, ""): items_to_delete.append(item)