mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:17:40 +00:00
Fix NSAlert appearing without a button. New behavior sets 'OK' if none are set.
This commit is contained in:
parent
586d207066
commit
b08a9576ff
1 changed files with 4 additions and 0 deletions
|
@ -2005,6 +2005,10 @@ void NSBeginInformationalAlertSheet(NSString *title,
|
|||
icon: _icon
|
||||
title: _message_text != nil ? _message_text : _(@"Alert")
|
||||
message: _informative_text != nil ? _informative_text : _(@"No information")];
|
||||
if ([_buttons count] == 0)
|
||||
{
|
||||
[self addButtonWithTitle: @"OK"];
|
||||
}
|
||||
[panel setButtons: _buttons];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue