mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 06:18:09 +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
|
begin
|
||||||
if fsModal in TForm(AWinControl).FormState then
|
if fsModal in TForm(AWinControl).FormState then
|
||||||
begin
|
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}
|
{$ifdef HASX11}
|
||||||
W := nil;
|
W := nil;
|
||||||
ActiveWin := GetActiveWindow;
|
ActiveWin := GetActiveWindow;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user