Fix broken menus when renaming an account

This commit is contained in:
Philipp Hörist 2017-08-14 15:02:55 +02:00
parent f8383954e3
commit dbbd3fe111
1 changed files with 3 additions and 0 deletions

View File

@ -2156,6 +2156,9 @@ class AccountsWindow:
gajim.interface.roster.setup_and_draw_roster()
self.init_accounts()
self.select_account(new_name)
gajim.app.remove_account_actions(old_name)
gajim.app.add_account_actions(new_name)
gui_menu_builder.build_accounts_menu()
title = _('Rename Account')
message = _('Enter a new name for account %s') % self.current_account