fix traceback. Fixes #4712
This commit is contained in:
parent
114909c3a9
commit
66aa2b5af4
|
@ -2036,10 +2036,12 @@ class Interface:
|
||||||
# ('PLAIN_CONNECTION', account, (connection))
|
# ('PLAIN_CONNECTION', account, (connection))
|
||||||
server = gajim.config.get_per('accounts', account, 'hostname')
|
server = gajim.config.get_per('accounts', account, 'hostname')
|
||||||
def on_ok(is_checked):
|
def on_ok(is_checked):
|
||||||
del self.instances[account]['online_dialog']['plain_connection']
|
|
||||||
if not is_checked[0]:
|
if not is_checked[0]:
|
||||||
on_cancel()
|
on_cancel()
|
||||||
return
|
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]:
|
if is_checked[1]:
|
||||||
gajim.config.set_per('accounts', account,
|
gajim.config.set_per('accounts', account,
|
||||||
'warn_when_plaintext_connection', False)
|
'warn_when_plaintext_connection', False)
|
||||||
|
|
Loading…
Reference in New Issue