Qt: do not send focus message if parent form is not visible in LCL. issue #31041

git-svn-id: trunk@53490 -
This commit is contained in:
zeljko 2016-11-30 21:56:53 +00:00
parent b7fd88403c
commit 7fecd361fc

View File

@ -1184,7 +1184,11 @@ begin
end;
end else
NewWidget.DeliverMessage(Msg);
begin
if Assigned(NewWidget.LCLObject) and (GetParentForm(NewWidget.LCLObject) <> nil) and
GetParentForm(NewWidget.LCLObject).Visible then
NewWidget.DeliverMessage(Msg);
end;
end;
end;