Performance improvement when reversing the order of a column
svn: r14231
This commit is contained in:
parent
538d5794d5
commit
6c7fcf4607
@ -647,8 +647,9 @@ class TreeBaseModel(gtk.GenericTreeModel):
|
|||||||
path = self.on_get_path(node)
|
path = self.on_get_path(node)
|
||||||
iter = self.get_iter(path)
|
iter = self.get_iter(path)
|
||||||
self.rows_reordered(path, iter, rows)
|
self.rows_reordered(path, iter, rows)
|
||||||
for child in node.children:
|
if self.nrgroups > 1:
|
||||||
self._reverse_level(self.nodemap.node(child[1]))
|
for child in node.children:
|
||||||
|
self._reverse_level(self.nodemap.node(child[1]))
|
||||||
|
|
||||||
def get_tree_levels(self):
|
def get_tree_levels(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user