mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:31:56 +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
cbd4e61f7b
commit
ddddcb1144
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>
|
2010-04-20 Doug Simons <doug.simons@testplant.com>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSWindowDecorationView.h:
|
* Headers/Additions/GNUstepGUI/GSWindowDecorationView.h:
|
||||||
|
|
|
@ -1384,7 +1384,7 @@ NSRunAlertPanel(
|
||||||
{
|
{
|
||||||
// No NSApp ... not running in a gui application so just log.
|
// No NSApp ... not running in a gui application so just log.
|
||||||
NSLog(@"%@", message);
|
NSLog(@"%@", message);
|
||||||
return NSAlertFirstButtonReturn;
|
return NSAlertDefaultReturn;
|
||||||
}
|
}
|
||||||
if (defaultButton == nil)
|
if (defaultButton == nil)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue