From 9fe4820f4ca212ac0ce84ca023508eea1ae0400c Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 10 Apr 2016 20:08:25 +0200 Subject: [PATCH] 0005449: Pedigree view crashes ... : add help button + suppress CLI tool mode --- gramps/plugins/tool/findloop.py | 5 +++-- gramps/plugins/tool/tools.gpr.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/tool/findloop.py b/gramps/plugins/tool/findloop.py index 892d4d518..3b6d76e24 100644 --- a/gramps/plugins/tool/findloop.py +++ b/gramps/plugins/tool/findloop.py @@ -55,6 +55,8 @@ from gramps.gui.editors import EditFamily # Constants # #------------------------------------------------------------------------- +WIKI_HELP_PAGE = '%s_-_Tools' % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('manual|Find_possible_loop_in_the_database') #------------------------------------------------------------------------ # @@ -198,8 +200,7 @@ class FindLoop(ManagedWindow) : def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - pass - + display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) #------------------------------------------------------------------------ # diff --git a/gramps/plugins/tool/tools.gpr.py b/gramps/plugins/tool/tools.gpr.py index b9f7aaa9a..4262ea458 100644 --- a/gramps/plugins/tool/tools.gpr.py +++ b/gramps/plugins/tool/tools.gpr.py @@ -494,5 +494,5 @@ authors_email = ["serge.noiraud@free.fr"], category = TOOL_UTILS, toolclass = 'FindLoop', optionclass = 'FindLoopOptions', -tool_modes = [TOOL_MODE_GUI, TOOL_MODE_CLI] +tool_modes = [TOOL_MODE_GUI] )