Improve on_get_iter for issue174

This commit is contained in:
Cédric Krier committed 2008-07-07 11:50:46 +02:00
1 parent 904e30f37e
commit 50fb140b08
1 file changed
+2 -2
+2 -2
View File
@@ -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