Skip to content

Commit 05577a9

Browse files
stevenyoungsNick-Hall
authored andcommitted
Connect the Help button in the repository reference editor
Fixes #13352.
1 parent 6bae0d5 commit 05577a9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gramps/gui/editors/editreporef.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@
3636
_ = glocale.translation.gettext
3737
from gramps.gen.lib import NoteType
3838
from gramps.gen.db import DbTxn
39+
from gramps.gen.const import URL_MANUAL_SECT2
3940

4041
from .displaytabs import NoteTab, AddrEmbedList, WebEmbedList, SourceBackRefList
4142
from ..widgets import MonitoredEntry, PrivacyButton, MonitoredDataType
4243
from .editreference import RefTab, EditReference
4344
from ..glade import Glade
4445

46+
# -------------------------------------------------------------------------
47+
#
48+
# Constants
49+
#
50+
# -------------------------------------------------------------------------
51+
52+
WIKI_HELP_PAGE = URL_MANUAL_SECT2
53+
WIKI_HELP_SEC = "Repository_Reference_Editor"
54+
4555

4656
# -------------------------------------------------------------------------
4757
#
@@ -84,6 +94,9 @@ def _local_init(self):
8494
def _connect_signals(self):
8595
self.define_ok_button(self.top.get_object("ok"), self.ok_clicked)
8696
self.define_cancel_button(self.top.get_object("cancel"))
97+
self.define_help_button(
98+
self.top.get_object("help"), WIKI_HELP_PAGE, WIKI_HELP_SEC
99+
)
87100

88101
def _connect_db_signals(self):
89102
"""

0 commit comments

Comments
 (0)