refactoring

This commit is contained in:
Denis Fomin 2013-01-07 02:03:01 +04:00
parent db0fe24695
commit 1f72cda50d
1 changed files with 1 additions and 3 deletions

View File

@ -1503,9 +1503,7 @@ class RosterWindow:
# do not change selection while DND'ing # do not change selection while DND'ing
return return
# Expand his parent, so this path is visible, don't expand it. # Expand his parent, so this path is visible, don't expand it.
path_ = str(path.get_indices()[:-1])[1:-1] path.up()
path_ = path_.replace(', ', ':')
path = path.new_from_string(path_)
self.tree.expand_to_path(path) self.tree.expand_to_path(path)
self.tree.scroll_to_cell(path) self.tree.scroll_to_cell(path)
self.tree.set_cursor(path) self.tree.set_cursor(path)