From ddddcb1144c95e1b4570cb8b8b205860f397af12 Mon Sep 17 00:00:00 2001 From: wlux Date: Fri, 23 Apr 2010 15:12:06 +0000 Subject: [PATCH] Fix incorrect return code of NSRunAlertPanel when called in a non-gui application. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30222 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSAlert.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 429f0fb60..68f7c783f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-23 Wolfgang Lux + + * Source/NSAlert.m (NSRunAlertPanel): Fix incorrect return code + when called in a non-gui application. + 2010-04-20 Doug Simons * Headers/Additions/GNUstepGUI/GSWindowDecorationView.h: diff --git a/Source/NSAlert.m b/Source/NSAlert.m index c13658da9..2cbc555a8 100644 --- a/Source/NSAlert.m +++ b/Source/NSAlert.m @@ -1384,7 +1384,7 @@ NSRunAlertPanel( { // No NSApp ... not running in a gui application so just log. NSLog(@"%@", message); - return NSAlertFirstButtonReturn; + return NSAlertDefaultReturn; } if (defaultButton == nil) {