fix a TB when creating a new Account

This commit is contained in:
Yann Leboulanger 2005-08-18 08:12:23 +00:00
parent e5ec93d0a9
commit ab3df4e540
1 changed files with 3 additions and 3 deletions

View File

@ -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()
return
con = connection.Connection(name)
self.windows[name]['xml_console'] = \
dialogs.XMLConsoleWindow(self, name)
self.plugin.register_handlers(con)
#if we need to register a new account
if new_account:
@ -1360,7 +1358,9 @@ _('To change the account name, you must be disconnected.')).get_response()
gajim.connections[name].password = config['password']
#update variables
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.connections[name].connected = 0
gajim.groups[name] = {}