Commit 6d1c28b3 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* implement the error panel correctly (for the records: not < 10.3 compatible)

parent da6b3153
...@@ -158,7 +158,14 @@ ...@@ -158,7 +158,14 @@
if( p_dialog->i_id == DIALOG_ERRORS ) if( p_dialog->i_id == DIALOG_ERRORS )
{ {
msg_Err( p_intf, "Error: %s", p_dialog->psz_description ); msg_Dbg( p_intf, "error panel requested" );
NSAlert * ourAlert = [NSAlert alertWithMessageText:
[NSString stringWithUTF8String:p_dialog->psz_title ? p_dialog->psz_title : _("Error")]
defaultButton: _NS("OK") alternateButton: nil otherButton: nil
informativeTextWithFormat:
[NSString stringWithUTF8String:p_dialog->psz_description]];
[ourAlert setAlertStyle: NSWarningAlertStyle];
[ourAlert runModal];
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment