mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:49:19 +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
|
else
|
||||||
Screen.FFocusedForm := nil;
|
Screen.FFocusedForm := nil;
|
||||||
RestoreFocusState(SavedFocusState);
|
RestoreFocusState(SavedFocusState);
|
||||||
if ActiveWindow <> 0 then
|
if LCLIntf.IsWindow(ActiveWindow) then
|
||||||
SetActiveWindow(ActiveWindow);
|
SetActiveWindow(ActiveWindow);
|
||||||
Exclude(FFormState, fsModal);
|
Exclude(FFormState, fsModal);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user