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; }