prevent traceback when enabling Zeroconf account. Fixes #5576
This commit is contained in:
parent
53a974114a
commit
eb3ff65c62
|
@ -2440,7 +2440,8 @@ class AccountsWindow:
|
|||
# normal account
|
||||
if self.ignore_events:
|
||||
return
|
||||
if gajim.connections[self.current_account].connected > 0:
|
||||
if self.current_account in gajim.connections and \
|
||||
gajim.connections[self.current_account].connected > 0:
|
||||
self.ignore_events = True
|
||||
self.xml.get_object('enable_zeroconf_checkbutton2').set_active(True)
|
||||
self.ignore_events = False
|
||||
|
|
Loading…
Reference in New Issue