5069: Fix bug preventing info objects being added to a root node of a tree

svn: r17891
This commit is contained in:
Nick Hall 2011-07-02 14:05:57 +00:00
parent 5bbe4fc56e
commit 59f4dc3fe9

View File

@ -434,7 +434,7 @@ class ListModel(object):
node = self.model.append() node = self.model.append()
elif self.list_mode == "tree": elif self.list_mode == "tree":
if node is None: # new node if node is None: # new node
node = self.model.append(None, data + [None]) node = self.model.append(None, data + [info])
need_to_set = False need_to_set = False
else: # use a previous node, passed in else: # use a previous node, passed in
node = self.model.append(node) node = self.model.append(node)