Improve on_get_iter for issue174
This commit is contained in:
1 parent
904e30f37e
commit
50fb140b08
1 file changed
+2
-2
@@ -195,9 +195,9 @@ class ViewTreeModel(gtk.GenericTreeModel, gtk.TreeSortable):
|
||||
'''returns the node corresponding to the given path.'''
|
||||
node = []
|
||||
tree = self.tree
|
||||
if self.tree == []:
|
||||
return None
|
||||
for i in path:
|
||||
if not tree:
|
||||
return None
|
||||
node.append((i, tree))
|
||||
tree = tree[i][2]
|
||||
return node
|
||||
|
||||
Reference in new issue
Block a user