allow disabling zeroconf if avahi was removed after enabling it

This commit is contained in:
Stefan Bethge 2006-09-29 17:56:51 +00:00
parent 2a0bce4e04
commit cb4153a4a3
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ class AccountsWindow:
st = gajim.config.get('enable_zeroconf')
w = self.xml.get_widget('enable_zeroconf_checkbutton')
w.set_active(st)
if os.name == 'nt' or avahi_error:
if os.name == 'nt' or (avahi_error and not w.get_active()):
w.set_sensitive(False)
w.connect('toggled', self.on_enable_zeroconf_checkbutton_toggled)