From 96e4707c89bec770bc16b63847353772666681b1 Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 6 Dec 2018 11:22:15 -0600 Subject: [PATCH] Allow addon Reports to specify a help button URL for options dialog Fixes #10910 --- gramps/gui/plug/report/_reportdialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/plug/report/_reportdialog.py b/gramps/gui/plug/report/_reportdialog.py index fc7634c5d..2cb48b069 100644 --- a/gramps/gui/plug/report/_reportdialog.py +++ b/gramps/gui/plug/report/_reportdialog.py @@ -581,7 +581,10 @@ class ReportDialog(ManagedWindow): pass def on_help_clicked(self, *obj): - from ...display import display_help + from ...display import display_help, display_url + if hasattr(self.options, 'help_url'): + display_url(self.options.help_url) + return display_help(URL_REPORT_PAGE, self.report_name.replace(" ", "_")) def on_style_edit_clicked(self, *obj):