all accounts to default to the same settings. fixing #1140

This commit is contained in:
Nikos Kouremenos 2005-11-24 12:39:21 +00:00
parent d06e51ab34
commit c7eb45aef5
1 changed files with 3 additions and 11 deletions

View File

@ -2496,17 +2496,9 @@ class AccountCreationWizardWindow:
self.go_online_checkbutton = self.xml.get_widget('go_online_checkbutton') self.go_online_checkbutton = self.xml.get_widget('go_online_checkbutton')
self.progressbar = self.xml.get_widget('progressbar') self.progressbar = self.xml.get_widget('progressbar')
# Some vars # some vars
self.sync = False
self.autoconnect = False
self.update_progressbar_timeout_id = None self.update_progressbar_timeout_id = None
if len(gajim.connections) == 0: # is it the first accound we're creating?
# the first account *has* to sync by default
self.sync = True
# the first account *has* to autoconnect by default
self.autoconnect = True
self.notebook.set_current_page(0) self.notebook.set_current_page(0)
self.advanced_button.set_no_show_all(True) self.advanced_button.set_no_show_all(True)
self.xml.signal_autoconnect(self) self.xml.signal_autoconnect(self)
@ -2710,9 +2702,9 @@ _('You can set advanced account options by pressing Advanced button, or later by
config['password'] = password config['password'] = password
config['resource'] = 'Gajim' config['resource'] = 'Gajim'
config['priority'] = 5 config['priority'] = 5
config['autoconnect'] = self.autoconnect config['autoconnect'] = True
config['no_log_for'] = '' config['no_log_for'] = ''
config['sync_with_global_status'] = self.sync config['sync_with_global_status'] = True
config['proxy'] = '' config['proxy'] = ''
config['usessl'] = False config['usessl'] = False
config['use_custom_host'] = False config['use_custom_host'] = False