mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 17:41:09 +02:00
lcl: TCustomForm.ShowModal: recreate handle only if handle was allocated, don't use HandleNeeded
git-svn-id: trunk@51631 -
This commit is contained in:
parent
6ee68dbc01
commit
d7e4677c9f
@ -2901,11 +2901,8 @@ begin
|
||||
Application.ModalStarted;
|
||||
try
|
||||
Include(FFormState, fsModal);
|
||||
if PopupMode = pmNone then
|
||||
begin
|
||||
RecreateWnd(Self);
|
||||
HandleNeeded;
|
||||
end;
|
||||
if (PopupMode = pmNone) and HandleAllocated then
|
||||
RecreateWnd(Self); // need to refresh handle for pmNone because ParentWindow changes if (fsModal in FFormState) - see GetRealPopupParent
|
||||
ActiveWindow := GetActiveWindow;
|
||||
SavedFocusState := SaveFocusState;
|
||||
SavedCursor := Screen.Cursor;
|
||||
|
Loading…
Reference in New Issue
Block a user