when we rename an account, change account var in chat / gc controls. Fixes #2369
This commit is contained in:
parent
4dd4f27b19
commit
e24f3e5e96
|
@ -1340,6 +1340,9 @@ class AccountModificationWindow:
|
|||
gajim.contacts.change_account_name(self.account, name)
|
||||
gajim.events.change_account_name(self.account, name)
|
||||
|
||||
# change account variable for chat / gc controls
|
||||
for ctrl in gajim.interface.msg_win_mgr.get_controls():
|
||||
ctrl.account = name
|
||||
# upgrade account variable in opened windows
|
||||
for kind in ('infos', 'disco', 'chats', 'gc', 'gc_config'):
|
||||
for j in gajim.interface.instances[name][kind]:
|
||||
|
|
Loading…
Reference in New Issue