From 833411ad602220f2342d3acb1d58136ebec3c3ce Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Sat, 4 Aug 2012 17:14:34 +0200 Subject: [PATCH] hide invite contacts buttons in zeroconf chat controls. Fixes #7188 --- src/chat_control.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 323c876ec2..f7f095cb05 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1735,10 +1735,14 @@ class ChatControl(ChatControlBase): "him or her a file.")) # Convert to GC - if self.contact.supports(NS_MUC): - self._convert_to_gc_button.set_sensitive(True) + if gajim.config.get_per('accounts', self.account, 'is_zeroconf'): + self._convert_to_gc_button.set_no_show_all(True) + self._convert_to_gc_button.hide() else: - self._convert_to_gc_button.set_sensitive(False) + if self.contact.supports(NS_MUC): + self._convert_to_gc_button.set_sensitive(True) + else: + self._convert_to_gc_button.set_sensitive(False) # Information if gajim.account_is_disconnected(self.account): -- GitLab