Skip to content

Commit

Permalink
Merge pull request #2707 from SasView/2692-fitting-help-sometimes-dis…
Browse files Browse the repository at this point in the history
…plays

Fixed context menu in the fitting widget
  • Loading branch information
rozyczko authored Jan 19, 2024
2 parents ced3e41 + cef64bb commit 97756a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,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))
Expand Down Expand Up @@ -1679,6 +1680,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
Expand Down

0 comments on commit 97756a8

Please sign in to comment.