Qt: fixed modal stack under qt-win32. issue #29602

git-svn-id: trunk@51526 -
This commit is contained in:
zeljko 2016-02-06 14:53:10 +00:00
parent 58aaa3977b
commit b801134b9b

View File

@ -436,6 +436,8 @@ begin
// qt doesn't modal windows as QtTool.see issue #18709
if (TForm(AWinControl).BorderStyle in [bsToolWindow, bsSizeToolWin]) then
QWidget_setWindowFlags(Widget.Widget, QtDialog);
if QApplication_activeModalWidget <> nil then
QWidget_setParent(Widget.Widget, QApplication_activeModalWidget);
{$endif}
{$ifdef HASX11}