From e24f3e5e967dc8fb64063bbad8fb028dcc7d3f5c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 3 Sep 2006 11:32:01 +0000 Subject: [PATCH] when we rename an account, change account var in chat / gc controls. Fixes #2369 --- src/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.py b/src/config.py index 70692307f..7eb015e21 100644 --- a/src/config.py +++ b/src/config.py @@ -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]: