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
This commit is contained in:
Wolfgang Lux 2010-04-23 15:12:06 +00:00
parent 7428dac2af
commit e400ed9975
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-04-23 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSAlert.m (NSRunAlertPanel): Fix incorrect return code
when called in a non-gui application.
2010-04-20 Doug Simons <doug.simons@testplant.com>
* Headers/Additions/GNUstepGUI/GSWindowDecorationView.h:

View file

@ -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)
{