Select account in account list if edited

Before: After a rightclick -> "Modify Account" on an account in the
roster the preferences of the account are shown but the account is not
selected in the account list.
After: account will be selected in the account list too
This commit is contained in:
Markus Wintermann 2018-05-05 14:19:17 +02:00
parent c38db84e04
commit e9a4b372e2
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ class AccountsWindow(Gtk.ApplicationWindow):
def select_account(self, account):
for row in self.account_list.get_children():
if row.get_child().account == account:
self.account_list.select_row(row)
self.account_list.emit('row-activated', row)
break