correctly check is zeroconf account is connected. see #7199

This commit is contained in:
Yann Leboulanger 2012-09-17 11:53:47 +02:00
parent eec809c89a
commit a3d2696987
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ class StatusIcon:
item.connect('activate', self.on_show_menuitem_activate, 'offline') item.connect('activate', self.on_show_menuitem_activate, 'offline')
iskey = connected_accounts > 0 and not (connected_accounts == 1 and 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) chat_with_menuitem.set_sensitive(iskey)
single_message_menuitem.set_sensitive(iskey) single_message_menuitem.set_sensitive(iskey)
join_gc_menuitem.set_sensitive(iskey) join_gc_menuitem.set_sensitive(iskey)