Qt: do not allow QtTool for modal windows under win32, otherwise global actions are fired.issue #18709

git-svn-id: trunk@29547 -
This commit is contained in:
zeljko 2011-02-14 15:37:03 +00:00
parent 8c126c8067
commit 4382974f54

View File

@ -359,6 +359,12 @@ begin
begin
if fsModal in TForm(AWinControl).FormState then
begin
{$ifdef MSWINDOWS}
// qt doesn't modal windows as QtTool.see issue #18709
if (TForm(AWinControl).BorderStyle in [bsToolWindow, bsSizeToolWin]) then
QWidget_setWindowFlags(Widget.Widget, QtDialog);
{$endif}
{$ifdef HASX11}
W := nil;
ActiveWin := GetActiveWindow;