mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 11:22:16 +02:00
Qt: do not send LM_ACTIVATE if form has parent. fixes #14899
git-svn-id: trunk@24121 -
This commit is contained in:
parent
b4cdc88cfb
commit
9efcf935eb
@ -1961,7 +1961,10 @@ begin
|
||||
if LCLObject is TCustomForm then
|
||||
begin
|
||||
FIsActivated := TCustomForm(LCLObject).Active;
|
||||
if vActivate = FIsActivated then
|
||||
{do not send activate if form is already activated,
|
||||
also do not send activate if TCustomForm.Parent is assigned
|
||||
since it's form embedded into another control or form}
|
||||
if (vActivate = FIsActivated) or (LCLObject.Parent <> nil) then
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user