From 93398f416b014e70a01ddfbb275a9f8b7c20cc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 25 Jan 2014 14:54:00 +0100 Subject: [PATCH] 7232: 'TreePath' has no len(); str(TreePath) can have a len()... --- gramps/plugins/gramplet/citations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/gramplet/citations.py b/gramps/plugins/gramplet/citations.py index 67c235e3a..a0fafd801 100644 --- a/gramps/plugins/gramplet/citations.py +++ b/gramps/plugins/gramplet/citations.py @@ -245,7 +245,7 @@ class Citations(Gramplet, DbGUIElement): model, iter_ = treeview.get_selection().get_selected() if iter_: handle = model.get_value(iter_, 0) - if len(model.get_path(iter_)) == 1: + if len(str(model.get_path(iter_))) == 1: self.edit_source(handle) else: self.edit_citation(handle)