fix account creation pb

This commit is contained in:
Yann Leboulanger 2005-06-09 09:32:19 +00:00
parent b91191998c
commit 1e948307c2
1 changed files with 8 additions and 5 deletions

View File

@ -1076,6 +1076,9 @@ class Account_modification_window:
self.account = account self.account = account
self.modify = False self.modify = False
# init proxy list
self.update_proxy_list()
self.xml.signal_autoconnect(self) self.xml.signal_autoconnect(self)
if account: if account:
self.modify = True self.modify = True
@ -1113,7 +1116,10 @@ class Account_modification_window:
entry.set_text(gpgpassword) entry.set_text(gpgpassword)
def update_proxy_list(self): def update_proxy_list(self):
if self.account:
our_proxy = gajim.config.get_per('accounts', self.account, 'proxy') our_proxy = gajim.config.get_per('accounts', self.account, 'proxy')
else:
our_proxy = ''
if not our_proxy: if not our_proxy:
our_proxy = 'None' our_proxy = 'None'
self.proxy_combobox = self.xml.get_widget('proxies_combobox') self.proxy_combobox = self.xml.get_widget('proxies_combobox')
@ -1147,9 +1153,6 @@ class Account_modification_window:
self.xml.get_widget('priority_spinbutton').set_value(gajim.config.\ self.xml.get_widget('priority_spinbutton').set_value(gajim.config.\
get_per('accounts', self.account, 'priority')) get_per('accounts', self.account, 'priority'))
# init proxy list
self.update_proxy_list()
usessl = gajim.config.get_per('accounts', self.account, 'usessl') usessl = gajim.config.get_per('accounts', self.account, 'usessl')
self.xml.get_widget('use_ssl_checkbutton').set_active(usessl) self.xml.get_widget('use_ssl_checkbutton').set_active(usessl)