diff --git a/src/chat_control.py b/src/chat_control.py
index 1f14402911c168b495c07f173510654b0fcc3316..4bb84cec6cc545263ff75befc7928b5c0dc57dff 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: