Commit c7eb45ae authored by nkour's avatar nkour

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

parent d06e51ab
......@@ -2496,17 +2496,9 @@ def __init__(self):
self.go_online_checkbutton = self.xml.get_widget('go_online_checkbutton')
self.progressbar = self.xml.get_widget('progressbar')
# Some vars
self.sync = False
self.autoconnect = False
# some vars
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.advanced_button.set_no_show_all(True)
self.xml.signal_autoconnect(self)
......@@ -2710,9 +2702,9 @@ def save_account(self, login, server, savepass, password):
config['password'] = password
config['resource'] = 'Gajim'
config['priority'] = 5
config['autoconnect'] = self.autoconnect
config['autoconnect'] = True
config['no_log_for'] = ''
config['sync_with_global_status'] = self.sync
config['sync_with_global_status'] = True
config['proxy'] = ''
config['usessl'] = False
config['use_custom_host'] = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment