mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 14:40:29 +02:00
Qt: use cheaper method to check modality.
git-svn-id: trunk@44732 -
This commit is contained in:
parent
1890ef17b7
commit
5d75e55db4
@ -563,7 +563,7 @@ begin
|
|||||||
(TCustomForm(AWinControl).PopupParent = nil) then
|
(TCustomForm(AWinControl).PopupParent = nil) then
|
||||||
begin
|
begin
|
||||||
W := QApplication_activeWindow;
|
W := QApplication_activeWindow;
|
||||||
if (W <> nil) and (W <> QApplication_activeModalWidget) then
|
if (W <> nil) and not QWidget_isModal(W) then
|
||||||
begin
|
begin
|
||||||
Flags := QWidget_windowFlags(W);
|
Flags := QWidget_windowFlags(W);
|
||||||
if (Flags and QtWindowStaysOnTopHint <> QtWindowStaysOnTopHint) and
|
if (Flags and QtWindowStaysOnTopHint <> QtWindowStaysOnTopHint) and
|
||||||
|
Loading…
Reference in New Issue
Block a user