Make sure the application terminates when neither a delegate is set, nor

it is a document based application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-03-29 13:08:35 +00:00
parent 33c97236b6
commit c439e20394
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-03-29 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (-terminate:): Initialize termination as
NSTerminateNow.
2008-03-28 Xavier Glattard <xavier.glattard@online.fr>
* Source/NSKeyValueBinding.m : turns a [setValue:forKey:] into

View file

@ -3207,7 +3207,7 @@ struct _DelegateWrapper
*/
- (void) terminate: (id)sender
{
NSApplicationTerminateReply termination;
NSApplicationTerminateReply termination = NSTerminateNow;
if ([_delegate respondsToSelector: @selector(applicationShouldTerminate:)])
{