diff --git a/gramps/plugins/gramplet/citations.py b/gramps/plugins/gramplet/citations.py index b40087d85..d2bb12569 100644 --- a/gramps/plugins/gramplet/citations.py +++ b/gramps/plugins/gramplet/citations.py @@ -243,7 +243,11 @@ class Citations(Gramplet, DbGUIElement): model, iter_ = treeview.get_selection().get_selected() if iter_: handle = model.get_value(iter_, 0) - if len(str(model.get_path(iter_))) == 1: + # bug 9094. + # str(model.get_path(iter_)) return something like NNN:MMM + # So if we have only NNN, it's a node + path = str(model.get_path(iter_)) + if path.find(':') == -1: # we don't have ':' in the returned string. self.edit_source(handle) else: self.edit_citation(handle)