Skip to content

Commit

Permalink
Catch combined models when displaying documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
krzywon committed Oct 24, 2024
1 parent b546ad8 commit 0d887e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,8 @@ def getHelpLocation(self, tree_base) -> Path:
plugin_names = [name for name, enabled in self.master_category_dict[CATEGORY_CUSTOM]]
if (self.kernel_module is not None
and hasattr(self.kernel_module, 'name')
and self.kernel_module.id not in plugin_names):
and self.kernel_module.id not in plugin_names
and not re.match("[A-Za-z0-9_-]+[+*@][A-Za-z0-9_-]+", self.kernel_module.id)):
tree_location = tree_base / "user" / "models"
return tree_location / f"{self.kernel_module.id}.html"
else:
Expand Down

0 comments on commit 0d887e0

Please sign in to comment.