From 1f72cda50ddc80eff60a872616346832c04b9cf0 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 7 Jan 2013 02:03:01 +0400 Subject: [PATCH] refactoring --- src/roster_window.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 18659624a..da0b7ca38 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1503,9 +1503,7 @@ class RosterWindow: # do not change selection while DND'ing return # Expand his parent, so this path is visible, don't expand it. - path_ = str(path.get_indices()[:-1])[1:-1] - path_ = path_.replace(', ', ':') - path = path.new_from_string(path_) + path.up() self.tree.expand_to_path(path) self.tree.scroll_to_cell(path) self.tree.set_cursor(path)