Remove NSApp.terminate to enable lcl cleanup and unit finalization calls. Application.terminate still works.

git-svn-id: trunk@43596 -
This commit is contained in:
freq 2013-12-27 10:44:52 +00:00
parent 0b22143078
commit 14cfd3b843

View File

@ -139,10 +139,12 @@ end;
Tells Carbon to halt the application
------------------------------------------------------------------------------}
procedure TCocoaWidgetSet.AppTerminate;
begin
if FTerminating then Exit;
NSApp.terminate(nil);
// TODO: Check if there is more cleanup to do here
// NSApp.terminate(nil); // causes app to quit directly
end;
{------------------------------------------------------------------------------