[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
This commit is contained in:
parent
75c8e82937
commit
6ea0fc1d75
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ static int make_message(int type, int nbmax, void *_param)
|
||||||
parent = qApp->activeWindow();
|
parent = qApp->activeWindow();
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
if (CWINDOW_Main)
|
if (CWINDOW_Current)
|
||||||
|
parent = CWINDOW_Current->widget.widget;
|
||||||
|
else if (CWINDOW_Main)
|
||||||
parent = CWINDOW_Main->widget.widget;
|
parent = CWINDOW_Main->widget.widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue