mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
7428dac2af
commit
e400ed9975
2 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue