0006352: Bookmarking a source in the citation tree creates a blank bookmark. Disallow bookmarking a source in the Citation Tree View, and do not add sources to the history in the Citation Tree View.

svn: r22543
This commit is contained in:
Tim G L Lyons
2013-06-20 16:42:58 +00:00
parent 0be260b01d
commit eef147273c
2 changed files with 34 additions and 0 deletions

View File

@@ -154,6 +154,17 @@ class CitationTreeView(ListView):
self.additional_uis.append(self.additional_ui())
# Override change_active from NavigationView, so that only Citations can be
# put in the history list for the CitationTreeView
def change_active(self, handle):
if self.dbstate.db.get_citation_from_handle(handle):
super(CitationTreeView, self).change_active(handle)
else:
# FIXME: See http://www.gramps-project.org/bugs/view.php?id=6352 a
# more comprehensive solution is needed in the long term. See also
# add in Bookmarks.CitationBookmarks
pass
def setup_filter(self):
"""
Override the setup of the default Search Bar in listview, so that only