From cb4153a4a3cc082a346b60ebad03509faa139ee4 Mon Sep 17 00:00:00 2001 From: Stefan Bethge Date: Fri, 29 Sep 2006 17:56:51 +0000 Subject: [PATCH] allow disabling zeroconf if avahi was removed after enabling it --- src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index ef953d74b..9aaf81caa 100644 --- a/src/config.py +++ b/src/config.py @@ -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)