mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 13:09:20 +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;
|
HideAllFormsWithStayOnTop;
|
||||||
// handle the exception
|
// handle the exception
|
||||||
if ExceptObject is Exception then begin
|
if ExceptObject is Exception then begin
|
||||||
if not (ExceptObject is EAbort) then
|
if not (ExceptObject is EAbort) then begin
|
||||||
i:=FApplicationHandlers[ahtUserInput].Count;
|
i:=FApplicationHandlers[ahtUserInput].Count;
|
||||||
if Assigned(OnException) or (i>0) then begin
|
if Assigned(OnException) or (i>0) then begin
|
||||||
if Assigned(OnException) then
|
if Assigned(OnException) then
|
||||||
@ -943,6 +943,7 @@ begin
|
|||||||
TExceptionEvent(FApplicationHandlers[ahtException][i])(Self,Exception(ExceptObject));
|
TExceptionEvent(FApplicationHandlers[ahtException][i])(Self,Exception(ExceptObject));
|
||||||
end else
|
end else
|
||||||
ShowException(Exception(ExceptObject));
|
ShowException(Exception(ExceptObject));
|
||||||
|
end;
|
||||||
end else
|
end else
|
||||||
SysUtils.ShowException(ExceptObject, ExceptAddr);
|
SysUtils.ShowException(ExceptObject, ExceptAddr);
|
||||||
Exclude(FFlags,AppHandlingException);
|
Exclude(FFlags,AppHandlingException);
|
||||||
|
Loading…
Reference in New Issue
Block a user