mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 01:57:57 +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
|
||||
begin
|
||||
W := QApplication_activeWindow;
|
||||
if (W <> nil) and (W <> QApplication_activeModalWidget) then
|
||||
if (W <> nil) and not QWidget_isModal(W) then
|
||||
begin
|
||||
Flags := QWidget_windowFlags(W);
|
||||
if (Flags and QtWindowStaysOnTopHint <> QtWindowStaysOnTopHint) and
|
||||
|
Loading…
Reference in New Issue
Block a user