mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
LCL: TApplication: fixed handling EAbort
git-svn-id: trunk@14259 -
This commit is contained in:
parent
3de400c818
commit
33c25b7bc5
@ -934,7 +934,7 @@ begin
|
||||
HideAllFormsWithStayOnTop;
|
||||
// handle the exception
|
||||
if ExceptObject is Exception then begin
|
||||
if not (ExceptObject is EAbort) then
|
||||
if not (ExceptObject is EAbort) then begin
|
||||
i:=FApplicationHandlers[ahtUserInput].Count;
|
||||
if Assigned(OnException) or (i>0) then begin
|
||||
if Assigned(OnException) then
|
||||
@ -943,6 +943,7 @@ begin
|
||||
TExceptionEvent(FApplicationHandlers[ahtException][i])(Self,Exception(ExceptObject));
|
||||
end else
|
||||
ShowException(Exception(ExceptObject));
|
||||
end;
|
||||
end else
|
||||
SysUtils.ShowException(ExceptObject, ExceptAddr);
|
||||
Exclude(FFlags,AppHandlingException);
|
||||
|
Loading…
Reference in New Issue
Block a user