From c5b60e8df57c893636fc1ffff1f5d98bf87c2a0f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 1 Oct 2009 09:51:10 +0200 Subject: [PATCH] don't allow to check "enable e2e encryption" when enable_esessions is False. Fixes #5295 --- src/chat_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index dc8dc10ed..27d8238c9 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -2130,7 +2130,8 @@ class ChatControl(ChatControlBase, ChatCommands): # XXX: Once we have fallback to disco, remove notexistant check if not gajim.HAVE_PYCRYPTO or \ not gajim.capscache.is_supported(contact, NS_ESESSION) or \ - gajim.capscache.is_supported(contact, 'notexistant'): + gajim.capscache.is_supported(contact, 'notexistant') or \ + not gajim.config.get_per('accounts', self.account, 'enable_esessions'): toggle_e2e_menuitem.set_sensitive(False) else: toggle_e2e_menuitem.set_active(e2e_is_active)