From 7bc8f160126ba5c3deb76cde4b551a2f5abc9f92 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Nov 2008 13:27:25 +0000 Subject: [PATCH] [kalyan] don't show error when we press enter in chat while offline if enter is just for a line break. Fixes #3852 --- 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 e5021bde8..d8a1d6e32 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -544,7 +544,8 @@ class ChatControlBase(MessageControl): else: # ENTER send_message = True - if gajim.connections[self.account].connected < 2: # we are not connected + if gajim.connections[self.account].connected < 2 and send_message: + # we are not connected dialogs.ErrorDialog(_('A connection is not available'), _('Your message can not be sent until you are connected.')) send_message = False