Fix error when returning path of top level node
svn: r20753
This commit is contained in:
parent
3dd5c5976d
commit
222f7bc1c8
@ -965,7 +965,7 @@ class TreeBaseModel(GObject.Object, Gtk.TreeModel):
|
||||
pathlist.append(index)
|
||||
node = parent
|
||||
|
||||
if pathlist is not None:
|
||||
if pathlist:
|
||||
pathlist.reverse()
|
||||
return Gtk.TreePath(tuple(pathlist))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user