fix a TB when creating a new Account
This commit is contained in:
parent
e5ec93d0a9
commit
ab3df4e540
|
@ -1343,8 +1343,6 @@ _('To change the account name, you must be disconnected.')).get_response()
|
||||||
_('You already have an account using this name.')).get_response()
|
_('You already have an account using this name.')).get_response()
|
||||||
return
|
return
|
||||||
con = connection.Connection(name)
|
con = connection.Connection(name)
|
||||||
self.windows[name]['xml_console'] = \
|
|
||||||
dialogs.XMLConsoleWindow(self, name)
|
|
||||||
self.plugin.register_handlers(con)
|
self.plugin.register_handlers(con)
|
||||||
#if we need to register a new account
|
#if we need to register a new account
|
||||||
if new_account:
|
if new_account:
|
||||||
|
@ -1361,6 +1359,8 @@ _('To change the account name, you must be disconnected.')).get_response()
|
||||||
#update variables
|
#update variables
|
||||||
self.plugin.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, \
|
self.plugin.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, \
|
||||||
'gc_config': {}}
|
'gc_config': {}}
|
||||||
|
self.plugin.windows[name]['xml_console'] = \
|
||||||
|
dialogs.XMLConsoleWindow(self, name)
|
||||||
gajim.awaiting_messages[name] = {}
|
gajim.awaiting_messages[name] = {}
|
||||||
gajim.connections[name].connected = 0
|
gajim.connections[name].connected = 0
|
||||||
gajim.groups[name] = {}
|
gajim.groups[name] = {}
|
||||||
|
|
Loading…
Reference in New Issue