Only clear dicts, don't reassign

svn: r14028
This commit is contained in:
Benny Malengier 2010-01-11 10:51:56 +00:00
parent aec92a4929
commit db06758bb0

View File

@ -206,7 +206,6 @@ class NodeMap(object):
clear the map
"""
self.id2node.clear()
self.id2node = {}
#-------------------------------------------------------------------------
#
@ -399,11 +398,8 @@ class TreeBaseModel(gtk.GenericTreeModel):
#invalidate the iters within gtk
self.invalidate_iters()
self.tree.clear()
self.tree = {}
self.handle2node.clear()
self.handle2node = {}
self.nodemap.clear()
self.nodemap = NodeMap()
#start with creating the new iters
topnode = Node(None, None, None, None)
self.nodemap.add_node(topnode)