From afacc88aab72550887cbe868e7d7f17b1d3baabd Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 5 Jul 2009 00:43:00 +0300 Subject: [PATCH] Separate variable for modal and non modal errors --- include/vlc_dialog.h | 1 - src/interface/dialog.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vlc_dialog.h b/include/vlc_dialog.h index 0270cb8baa..4b99ce766b 100644 --- a/include/vlc_dialog.h +++ b/include/vlc_dialog.h @@ -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) ); diff --git a/src/interface/dialog.c b/src/interface/dialog.c index 22ac7859e7..50500405ad 100644 --- a/src/interface/dialog.c +++ b/src/interface/dialog.c @@ -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); -- 2.39.2