mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 13:20:18 +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;
|
Application.ModalStarted;
|
||||||
try
|
try
|
||||||
Include(FFormState, fsModal);
|
Include(FFormState, fsModal);
|
||||||
if PopupMode = pmNone then
|
if (PopupMode = pmNone) and HandleAllocated then
|
||||||
begin
|
RecreateWnd(Self); // need to refresh handle for pmNone because ParentWindow changes if (fsModal in FFormState) - see GetRealPopupParent
|
||||||
RecreateWnd(Self);
|
|
||||||
HandleNeeded;
|
|
||||||
end;
|
|
||||||
ActiveWindow := GetActiveWindow;
|
ActiveWindow := GetActiveWindow;
|
||||||
SavedFocusState := SaveFocusState;
|
SavedFocusState := SaveFocusState;
|
||||||
SavedCursor := Screen.Cursor;
|
SavedCursor := Screen.Cursor;
|
||||||
|
Loading…
Reference in New Issue
Block a user