LCL: TSpeedButton does not respond to pressing, after closing the modal form with a double click. Issue #33874

git-svn-id: trunk@58312 -
This commit is contained in:
michl 2018-06-18 20:21:33 +00:00
parent f71c5e7e17
commit a82d438e12

View File

@ -3055,7 +3055,11 @@ begin
SetActiveWindow(ActiveWindow);
Exclude(FFormState, fsModal);
if ((PopupMode = pmNone) and HandleAllocated) and not (csDestroying in ComponentState) then
RecreateWnd(Self); // need to refresh handle for pmNone because ParentWindow changes if (fsModal in FFormState) - see GetRealPopupParent
begin
// need to refresh handle for pmNone because ParentWindow changes if (fsModal in FFormState) - see GetRealPopupParent
MouseCapture := False;
RecreateWnd(Self);
end;
end;
finally
Application.ModalFinished;