7232: 'TreePath' has no len(); str(TreePath) can have a len()...
This commit is contained in:
parent
e1e29efe31
commit
1539830914
@ -245,7 +245,7 @@ class Citations(Gramplet, DbGUIElement):
|
|||||||
model, iter_ = treeview.get_selection().get_selected()
|
model, iter_ = treeview.get_selection().get_selected()
|
||||||
if iter_:
|
if iter_:
|
||||||
handle = model.get_value(iter_, 0)
|
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)
|
self.edit_source(handle)
|
||||||
else:
|
else:
|
||||||
self.edit_citation(handle)
|
self.edit_citation(handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user