]> git.sesse.net Git - vlc/blobdiff - src/interface/dialog.c
Separate variable for modal and non modal errors
[vlc] / src / interface / dialog.c
index 22ac7859e77f28269b1e8f5002e941bd27f0dbe9..50500405adad7f948af61129ad033187744f6011 100644 (file)
@@ -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);