]> git.sesse.net Git - vlc/commitdiff
Separate variable for modal and non modal errors
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Jul 2009 21:43:00 +0000 (00:43 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Jul 2009 21:50:14 +0000 (00:50 +0300)
include/vlc_dialog.h
src/interface/dialog.c

index 0270cb8baa6143023a02e65379e8603e2ef234e7..4b99ce766b39dba802108f8da62b0f9f7e6fc0c6 100644 (file)
@@ -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) );
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);