From e75b994d77ef7cb5dd6bdafb229da06878766db0 Mon Sep 17 00:00:00 2001 From: Piotr Rozyczko Date: Tue, 25 Apr 2023 15:37:21 +0200 Subject: [PATCH] typo fix which should go to 5.0.6 --- 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 e4cff872cf..354b3e852c 100644 --- a/src/sas/qtgui/MainWindow/DataExplorer.py +++ b/src/sas/qtgui/MainWindow/DataExplorer.py @@ -1909,9 +1909,9 @@ def onAnalysisUpdate(self, new_perspective_name: str): """ Update the perspective combo index based on passed string """ - assert new_perspective in Perspectives.PERSPECTIVES.keys() + assert new_perspective_name in Perspectives.PERSPECTIVES.keys() self.cbFitting.blockSignals(True) - self.cbFitting.setCurrentIndex(self.cbFitting.findText(new_perspective)) + self.cbFitting.setCurrentIndex(self.cbFitting.findText(new_perspective_name)) self.cbFitting.blockSignals(False) pass