cocoa: resolving event processing for modal loop application termination

git-svn-id: trunk@61407 -
This commit is contained in:
dmitry 2019-06-17 16:50:31 +00:00
parent 3cba1d3b82
commit 7e3857ceac

View File

@ -546,7 +546,9 @@ begin
CocoaWidgetSet.ReleaseToCollect(idx); CocoaWidgetSet.ReleaseToCollect(idx);
end; end;
{$ifdef COCOALOOPNATIVE} {$ifdef COCOALOOPNATIVE}
if CocoaWidgetSet.FTerminating then stop(nil);
except except
if CocoaWidgetSet.FTerminating then stop(nil);
if Assigned(Application) and Application.CaptureExceptions then if Assigned(Application) and Application.CaptureExceptions then
Application.HandleException(Application) Application.HandleException(Application)
else else