Qt: simplified check for visibility.

git-svn-id: trunk@53681 -
This commit is contained in:
zeljko 2016-12-14 15:39:05 +00:00
parent 224ed6f8cb
commit 363c3e9e88

View File

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