Skip to content

Commit

Permalink
Merge pull request #821 from mantidproject/release_fix_wrong_op_help
Browse files Browse the repository at this point in the history
Fixes wrong help page being opened
  • Loading branch information
samtygier-stfc authored Jan 14, 2021
2 parents c829e06 + 142473d commit 63c5b08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mantidimaging/gui/windows/operations/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,13 @@ def show_operation_completed(self, operation_name):
self.notification_text.setText(f"{operation_name} completed successfully!")

def open_help_webpage(self):
filter_module_path = self.presenter.get_filter_module_name(self.filterSelector.currentIndex())
idx = self.filterSelector.currentIndex()
if idx >= 16:
idx -= 2
elif idx >= 5:
idx -= 1

filter_module_path = self.presenter.get_filter_module_name(idx)
try:
open_api_webpage(filter_module_path)
except RuntimeError as err:
Expand Down

0 comments on commit 63c5b08

Please sign in to comment.