remove no more used var. chat and gc are now handles by message window manager
This commit is contained in:
parent
e24f3e5e96
commit
5ac4a0d86c
2 changed files with 3 additions and 4 deletions
|
@ -1344,7 +1344,7 @@ class AccountModificationWindow:
|
||||||
for ctrl in gajim.interface.msg_win_mgr.get_controls():
|
for ctrl in gajim.interface.msg_win_mgr.get_controls():
|
||||||
ctrl.account = name
|
ctrl.account = name
|
||||||
# upgrade account variable in opened windows
|
# upgrade account variable in opened windows
|
||||||
for kind in ('infos', 'disco', 'chats', 'gc', 'gc_config'):
|
for kind in ('infos', 'disco', 'gc_config'):
|
||||||
for j in gajim.interface.instances[name][kind]:
|
for j in gajim.interface.instances[name][kind]:
|
||||||
gajim.interface.instances[name][kind][j].account = name
|
gajim.interface.instances[name][kind][j].account = name
|
||||||
|
|
||||||
|
@ -2905,7 +2905,7 @@ _('You can set advanced account options by pressing Advanced button, or later by
|
||||||
|
|
||||||
# update variables
|
# update variables
|
||||||
gajim.interface.instances[self.account] = {'infos': {}, 'disco': {},
|
gajim.interface.instances[self.account] = {'infos': {}, 'disco': {},
|
||||||
'chats': {}, 'gc': {}, 'gc_config': {}}
|
'gc_config': {}}
|
||||||
gajim.connections[self.account].connected = 0
|
gajim.connections[self.account].connected = 0
|
||||||
gajim.groups[self.account] = {}
|
gajim.groups[self.account] = {}
|
||||||
gajim.contacts.add_account(self.account)
|
gajim.contacts.add_account(self.account)
|
||||||
|
|
|
@ -1842,8 +1842,7 @@ class Interface:
|
||||||
self.instances = {'logs': {}}
|
self.instances = {'logs': {}}
|
||||||
|
|
||||||
for a in gajim.connections:
|
for a in gajim.connections:
|
||||||
self.instances[a] = {'infos': {}, 'disco': {}, 'chats': {},
|
self.instances[a] = {'infos': {}, 'disco': {}, 'gc_config': {}}
|
||||||
'gc': {}, 'gc_config': {}}
|
|
||||||
gajim.contacts.add_account(a)
|
gajim.contacts.add_account(a)
|
||||||
gajim.groups[a] = {}
|
gajim.groups[a] = {}
|
||||||
gajim.gc_connected[a] = {}
|
gajim.gc_connected[a] = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue