fix traceback. Fixes #4712

This commit is contained in:
Yann Leboulanger 2009-01-21 21:30:16 +00:00
parent 114909c3a9
commit 66aa2b5af4
1 changed files with 3 additions and 1 deletions

View File

@ -2036,10 +2036,12 @@ class Interface:
# ('PLAIN_CONNECTION', account, (connection))
server = gajim.config.get_per('accounts', account, 'hostname')
def on_ok(is_checked):
del self.instances[account]['online_dialog']['plain_connection']
if not is_checked[0]:
on_cancel()
return
# On cancel call del self.instances, so don't call it another time
# before
del self.instances[account]['online_dialog']['plain_connection']
if is_checked[1]:
gajim.config.set_per('accounts', account,
'warn_when_plaintext_connection', False)