account name is now the server name
This commit is contained in:
parent
8d26752f48
commit
6556b2724e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue