Only update display counts for nodes with handles
svn: r14527
This commit is contained in:
parent
ccbe040c1f
commit
4f7a2d7593
@ -577,6 +577,7 @@ class TreeBaseModel(gtk.GenericTreeModel):
|
|||||||
path = self.on_get_path(child_node)
|
path = self.on_get_path(child_node)
|
||||||
node = self.get_iter(path)
|
node = self.get_iter(path)
|
||||||
self.row_inserted(path, node)
|
self.row_inserted(path, node)
|
||||||
|
if handle:
|
||||||
self.__total += 1
|
self.__total += 1
|
||||||
self.__displayed += 1
|
self.__displayed += 1
|
||||||
|
|
||||||
@ -613,10 +614,10 @@ class TreeBaseModel(gtk.GenericTreeModel):
|
|||||||
del self.tree[node.ref]
|
del self.tree[node.ref]
|
||||||
if node.handle is not None:
|
if node.handle is not None:
|
||||||
del self.handle2node[node.handle]
|
del self.handle2node[node.handle]
|
||||||
self.nodemap.del_node(node)
|
|
||||||
del node
|
|
||||||
self.__displayed -= 1
|
self.__displayed -= 1
|
||||||
self.__total -= 1
|
self.__total -= 1
|
||||||
|
self.nodemap.del_node(node)
|
||||||
|
del node
|
||||||
|
|
||||||
# emit row_deleted signal
|
# emit row_deleted signal
|
||||||
self.row_deleted(path)
|
self.row_deleted(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user