* 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
This commit is contained in:
Benoît Minisini 2014-11-22 23:37:52 +00:00
parent 75c8e82937
commit 6ea0fc1d75

View file

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