LCL: TCustomForm.ShowModal() use LCLIntf.IsWindow(ActiveWindow) instead ActiveWindow <> 0 for check, since ActiveWindow can dissappear in the meantime.

git-svn-id: trunk@24286 -
This commit is contained in:
zeljko 2010-03-29 13:01:33 +00:00
parent 53edb14849
commit dd97a09f46

View File

@ -2504,7 +2504,7 @@ begin
else
Screen.FFocusedForm := nil;
RestoreFocusState(SavedFocusState);
if ActiveWindow <> 0 then
if LCLIntf.IsWindow(ActiveWindow) then
SetActiveWindow(ActiveWindow);
Exclude(FFormState, fsModal);
end;