mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-20 17:46:19 +02:00
lcl: ShowModal: handleexception of Idle, otherwise error dialog is auto closed
This commit is contained in:
parent
affdc95269
commit
e89e0d7dcd
@ -3040,7 +3040,14 @@ begin
|
|||||||
if ModalResult<>0 then break;
|
if ModalResult<>0 then break;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Application.Idle(true);
|
try
|
||||||
|
Application.Idle(true);
|
||||||
|
except
|
||||||
|
if Application.CaptureExceptions then
|
||||||
|
Application.HandleException(Self)
|
||||||
|
else
|
||||||
|
raise;
|
||||||
|
end;
|
||||||
until False;
|
until False;
|
||||||
|
|
||||||
Result := ModalResult;
|
Result := ModalResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user