select iter when we add a bookmark. fixes #2889

This commit is contained in:
Yann Leboulanger 2007-01-11 22:26:56 +00:00
parent 17fa45890e
commit 9cbdad9df5
1 changed files with 3 additions and 2 deletions

View File

@ -2740,8 +2740,9 @@ class ManageBookmarksWindow:
account = model[add_to][1].decode('utf-8')
nick = gajim.nicks[account]
self.treestore.append(add_to, [account, _('New Group Chat'), '', False,
'', nick, 'in_and_out'])
iter_ = self.treestore.append(add_to, [account, _('New Group Chat'), '',
False, '', nick, 'in_and_out'])
self.view.set_cursor(model.get_path(iter_))
self.view.expand_row(model.get_path(add_to), True)