Commit 5eccfc40 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Separate variable for modal and non modal errors

(cherry picked from commit afacc88a)
parent d270376b
...@@ -35,7 +35,6 @@ typedef struct dialog_fatal_t ...@@ -35,7 +35,6 @@ typedef struct dialog_fatal_t
{ {
const char *title; const char *title;
const char *message; const char *message;
bool modal;
} dialog_fatal_t; } dialog_fatal_t;
VLC_EXPORT( void, dialog_VFatal, (vlc_object_t *, bool, const char *, const char *, va_list) ); VLC_EXPORT( void, dialog_VFatal, (vlc_object_t *, bool, const char *, const char *, va_list) );
......
...@@ -119,8 +119,9 @@ void dialog_VFatal (vlc_object_t *obj, bool modal, const char *title, ...@@ -119,8 +119,9 @@ void dialog_VFatal (vlc_object_t *obj, bool modal, const char *title,
if (vasprintf (&text, fmt, ap) != -1) if (vasprintf (&text, fmt, ap) != -1)
{ {
dialog_fatal_t dialog = { title, text, modal, }; dialog_fatal_t dialog = { title, text, };
var_SetAddress (provider, "dialog-fatal", &dialog); var_SetAddress (provider,
modal ? "dialog-critical" : "dialog-error", &dialog);
free (text); free (text);
} }
vlc_object_release (provider); vlc_object_release (provider);
......
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