mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:00:47 +00:00
Fixes for bug #29085
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74104bd46a
commit
f6b454e7e1
2 changed files with 13 additions and 0 deletions
|
@ -1379,6 +1379,12 @@ NSRunAlertPanel(
|
|||
message = [NSString stringWithFormat: msg arguments: ap];
|
||||
va_end(ap);
|
||||
|
||||
if (NSApp == nil)
|
||||
{
|
||||
// No NSApp ... not running in a gui application so just log.
|
||||
NSLog(@"%@", message);
|
||||
return NSAlertFirstButtonReturn;
|
||||
}
|
||||
if (defaultButton == nil)
|
||||
{
|
||||
defaultButton = @"OK";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue