From c835c6f87cefdbecf9a0b5eca37b1b582f379859 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 5 Dec 2016 16:20:10 +0100 Subject: [PATCH] 7309: Jump to Gramps ID functionality doesn't work for relview --- gramps/plugins/view/relview.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gramps/plugins/view/relview.py b/gramps/plugins/view/relview.py index 90c2841a2..3353d27a5 100644 --- a/gramps/plugins/view/relview.py +++ b/gramps/plugins/view/relview.py @@ -160,6 +160,16 @@ class RelationshipView(NavigationView): self.theme = self._config.get('preferences.relation-display-theme') self.toolbar_visible = config.get('interface.toolbar-on') + def get_handle_from_gramps_id(self, gid): + """ + returns the handle of the specified object + """ + obj = self.dbstate.db.get_person_from_gramps_id(gid) + if obj: + return obj.get_handle() + else: + return None + def _connect_db_signals(self): """ implement from base class DbGUIElement