From a3d2696987440e447abe1de1a88e26f626455746 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 17 Sep 2012 11:53:47 +0200
Subject: [PATCH] correctly check is zeroconf account is connected. see #7199

---
 src/statusicon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/statusicon.py b/src/statusicon.py
index 6c16242a6a..7db0eb28a5 100644
--- a/src/statusicon.py
+++ b/src/statusicon.py
@@ -256,7 +256,7 @@ class StatusIcon:
         item.connect('activate', self.on_show_menuitem_activate, 'offline')
 
         iskey = connected_accounts > 0 and not (connected_accounts == 1 and
-                        gajim.connections[gajim.connections.keys()[0]].is_zeroconf)
+            gajim.zeroconf_is_connected())
         chat_with_menuitem.set_sensitive(iskey)
         single_message_menuitem.set_sensitive(iskey)
         join_gc_menuitem.set_sensitive(iskey)
-- 
GitLab