account name is now the server name

This commit is contained in:
Yann Leboulanger 2005-11-05 11:30:42 +00:00
parent 8d26752f48
commit 6556b2724e
1 changed files with 6 additions and 5 deletions

View File

@ -2455,11 +2455,6 @@ class AccountCreationWizardWindow:
self.sync = True
# the first account *has* to autoconnect by default
self.autoconnect = True
self.account = _('Main')
i = 1
while self.account in gajim.connections:
self.account = _('Main') + str(i)
i += 1
self.notebook.set_current_page(0)
self.advanced_button.set_no_show_all(True)
@ -2542,6 +2537,12 @@ class AccountCreationWizardWindow:
dialogs.ErrorDialog(pritext, str(s)).get_response()
return
self.account = server
i = 1
while self.account in gajim.connections:
self.account = server + str(i)
i += 1
username, server = gajim.get_room_name_and_server_from_room_jid(jid)
self.save_account(username, server, savepass, password)
self.cancel_button.hide()