From 1ed6103a41113682f21aee41b063136acc8dad7a Mon Sep 17 00:00:00 2001 From: Josip Date: Fri, 12 Jun 2015 16:07:44 +0200 Subject: [PATCH] 8625: Cannot open Citation references from Clip Board --- gramps/gui/clipboard.py | 11 ++++++++++- gramps/gui/glade/clipboard.glade | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index 42f5fbf5d..fc2d7ecda 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -1564,7 +1564,8 @@ class MultiTreeView(Gtk.TreeView): def edit_obj(self, objclass, handle): from .editors import (EditPerson, EditEvent, EditFamily, EditSource, - EditPlace, EditRepository, EditNote, EditMedia) + EditPlace, EditRepository, EditNote, EditMedia, + EditCitation) if objclass == 'Person': person = self.dbstate.db.get_person_from_handle(handle) if person: @@ -1629,6 +1630,14 @@ class MultiTreeView(Gtk.TreeView): self.uistate, [], ref) except WindowActiveError: pass + elif objclass == 'Citation': + ref = self.dbstate.db.get_citation_from_handle(handle) + if ref: + try: + EditCitation(self.dbstate, + self.uistate, [], ref) + except WindowActiveError: + pass def short(val,size=60): if len(val) > size: diff --git a/gramps/gui/glade/clipboard.glade b/gramps/gui/glade/clipboard.glade index dce6aef81..8e83839f1 100644 --- a/gramps/gui/glade/clipboard.glade +++ b/gramps/gui/glade/clipboard.glade @@ -2,7 +2,6 @@ - True False Clipboard 500