when we rename an account, change account var in chat / gc controls. Fixes #2369

This commit is contained in:
Yann Leboulanger 2006-09-03 11:32:01 +00:00
parent 4dd4f27b19
commit e24f3e5e96
1 changed files with 3 additions and 0 deletions

View File

@ -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]: