mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 22:16:09 +02:00
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:
parent
53edb14849
commit
dd97a09f46
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user