Fix error when returning path of top level node

svn: r20753
This commit is contained in:
Nick Hall 2012-12-02 23:32:36 +00:00
parent 3dd5c5976d
commit 222f7bc1c8

View File

@ -965,7 +965,7 @@ class TreeBaseModel(GObject.Object, Gtk.TreeModel):
pathlist.append(index) pathlist.append(index)
node = parent node = parent
if pathlist is not None: if pathlist:
pathlist.reverse() pathlist.reverse()
return Gtk.TreePath(tuple(pathlist)) return Gtk.TreePath(tuple(pathlist))
else: else: