[kalyan] don't show error when we press enter in chat while offline if enter is just for a line break. Fixes #3852

This commit is contained in:
Yann Leboulanger 2008-11-10 13:27:25 +00:00
parent 1078112473
commit 7bc8f16012
1 changed files with 2 additions and 1 deletions

View File

@ -544,7 +544,8 @@ class ChatControlBase(MessageControl):
else: # ENTER else: # ENTER
send_message = True 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'), dialogs.ErrorDialog(_('A connection is not available'),
_('Your message can not be sent until you are connected.')) _('Your message can not be sent until you are connected.'))
send_message = False send_message = False