[nk] Better logic

This commit is contained in:
Jean-Marie Traissard 2006-06-21 17:03:14 +00:00
parent 48b89a8cc8
commit f7b2a7fe81
1 changed files with 4 additions and 3 deletions

View File

@ -1313,11 +1313,12 @@ class AccountModificationWindow:
relogin_needed = False relogin_needed = False
else: # we're connected to the account we want to apply changes else: # we're connected to the account we want to apply changes
# check if relogin is needed # check if relogin is needed
relogin_needed = self.options_changed_need_relogin(config, if = self.options_changed_need_relogin(config,
('resource', 'proxy', 'usessl', 'keyname', ('resource', 'proxy', 'usessl', 'keyname',
'use_custom_host', 'custom_host')) 'use_custom_host', 'custom_host')):
relogin_needed = True
if config['use_custom_host'] and (self.option_changed(config, elif config['use_custom_host'] and (self.option_changed(config,
'custom_host') or self.option_changed(config, 'custom_port')): 'custom_host') or self.option_changed(config, 'custom_port')):
relogin_needed = True relogin_needed = True