From 720a67c859b11c9d7d315be212ec5eec7fc6cb16 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Fri, 3 Jan 2014 14:17:40 +0400
Subject: [PATCH] "A connection is not available" transient for chat control.
 Fixes#7098

---
 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 1f14402911..4bb84cec6c 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -830,7 +830,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
             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.'))
+                    _('Your message can not be sent until you are connected.'),
+                    transient_for=self.parent_win.window)
                 send_message = False
 
             if send_message:
-- 
GitLab