mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 06:07:29 +01:00
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:
parent
8c126c8067
commit
4382974f54
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user