mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 06:50:46 +02:00
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:
parent
0b22143078
commit
14cfd3b843
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user