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

Separate variable for modal and non modal errors

parent 9a55c487
......@@ -35,7 +35,6 @@ typedef struct dialog_fatal_t
{
const char *title;
const char *message;
bool modal;
} dialog_fatal_t;
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,
if (vasprintf (&text, fmt, ap) != -1)
{
dialog_fatal_t dialog = { title, text, modal, };
var_SetAddress (provider, "dialog-fatal", &dialog);
dialog_fatal_t dialog = { title, text, };
var_SetAddress (provider,
modal ? "dialog-critical" : "dialog-error", &dialog);
free (text);
}
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