mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-18 16:26:10 +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;
|
||||
end;
|
||||
|
||||
Application.Idle(true);
|
||||
try
|
||||
Application.Idle(true);
|
||||
except
|
||||
if Application.CaptureExceptions then
|
||||
Application.HandleException(Self)
|
||||
else
|
||||
raise;
|
||||
end;
|
||||
until False;
|
||||
|
||||
Result := ModalResult;
|
||||
|
Loading…
Reference in New Issue
Block a user