On delete of node in treeview, remove handle link so that goto_handle unsets

selection


svn: r14052
This commit is contained in:
Benny Malengier 2010-01-12 22:10:33 +00:00
parent 61de0898af
commit 623e39d0a8

View File

@ -604,6 +604,7 @@ class TreeBaseModel(gtk.GenericTreeModel):
path = self.on_get_path(node) path = self.on_get_path(node)
self.nodemap.node(node.parent).remove_child(node, self.nodemap) self.nodemap.node(node.parent).remove_child(node, self.nodemap)
del self.tree[node.ref] del self.tree[node.ref]
del self.handle2node[node.handle]
self.nodemap.del_node(node) self.nodemap.del_node(node)
del node del node
self.__displayed -= 1 self.__displayed -= 1