refactoring
This commit is contained in:
parent
db0fe24695
commit
1f72cda50d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue