lcl: ShowModal: handleexception of Idle, otherwise error dialog is auto closed

This commit is contained in:
mattias 2023-06-01 10:57:17 +02:00
parent affdc95269
commit e89e0d7dcd

View File

@ -3040,7 +3040,14 @@ begin
if ModalResult<>0 then break;
end;
Application.Idle(true);
try
Application.Idle(true);
except
if Application.CaptureExceptions then
Application.HandleException(Self)
else
raise;
end;
until False;
Result := ModalResult;