From 6ea0fc1d7546897260ec69b39ae923f0aef6fcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 22 Nov 2014 23:37:52 +0000 Subject: [PATCH] [GB.QT4] * BUG: Message boxes now uses the current modal dialog as parent if there is no active window. git-svn-id: svn://localhost/gambas/trunk@6663 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/CMessage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gb.qt4/src/CMessage.cpp b/gb.qt4/src/CMessage.cpp index 56199149a..5714fb3f4 100644 --- a/gb.qt4/src/CMessage.cpp +++ b/gb.qt4/src/CMessage.cpp @@ -140,7 +140,9 @@ static int make_message(int type, int nbmax, void *_param) parent = qApp->activeWindow(); if (!parent) { - if (CWINDOW_Main) + if (CWINDOW_Current) + parent = CWINDOW_Current->widget.widget; + else if (CWINDOW_Main) parent = CWINDOW_Main->widget.widget; }