LCL: fixed TCustomForm.FocusControl checking IsVisible

git-svn-id: trunk@25656 -
This commit is contained in:
mattias 2010-05-26 08:24:15 +00:00
parent ef9ab37cc9
commit a03f193c5e

View File

@ -141,7 +141,7 @@ var
begin
WasActive := FActive;
SetActiveControl(WinControl);
if not WasActive then
if (not WasActive) and IsVisible then
SetFocus;
end;