prevent traceback when enabling Zeroconf account. Fixes #5576

This commit is contained in:
Yann Leboulanger 2010-01-25 18:51:57 +01:00
parent 53a974114a
commit eb3ff65c62
1 changed files with 2 additions and 1 deletions

View File

@ -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