From cef64bb6809899a97333069723a5c5726543b099 Mon Sep 17 00:00:00 2001 From: rozyczko Date: Tue, 16 Jan 2024 20:37:07 +0100 Subject: [PATCH] reinitialize self.kernel_module on category change. --- src/sas/qtgui/Perspectives/Fitting/FittingWidget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py b/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py index fc89951667..804007d8eb 100644 --- a/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py +++ b/src/sas/qtgui/Perspectives/Fitting/FittingWidget.py @@ -690,6 +690,7 @@ def showModelContextMenu(self, position): current_list = self.tabToList[self.tabFitting.currentIndex()] rows = [s.row() for s in current_list.selectionModel().selectedRows() if self.isCheckable(s.row())] + menu = self.showModelDescription() if not rows else self.modelContextMenu(rows) try: menu.exec_(current_list.viewport().mapToGlobal(position)) @@ -1674,6 +1675,7 @@ def onSelectCategory(self): self.cbModel.blockSignals(False) self.enableModelCombo() self.disableStructureCombo() + self.kernel_module = None self._previous_category_index = self.cbCategory.currentIndex() # Retrieve the list of models