mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
33c97236b6
commit
c439e20394
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -3207,7 +3207,7 @@ struct _DelegateWrapper
|
|||
*/
|
||||
- (void) terminate: (id)sender
|
||||
{
|
||||
NSApplicationTerminateReply termination;
|
||||
NSApplicationTerminateReply termination = NSTerminateNow;
|
||||
|
||||
if ([_delegate respondsToSelector: @selector(applicationShouldTerminate:)])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue