7232: 'TreePath' has no len(); str(TreePath) can have a len()...

This commit is contained in:
Jérôme Rapinat 2014-01-25 14:54:00 +01:00
parent 6a9d1897cb
commit 93398f416b

View File

@ -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)