[vlc-devel] commit: Qt4: remove intf_UserFatal back-end ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Mar 7 20:30:45 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar  7 21:30:19 2009 +0200| [57aea111c80b6f694fae794bab3d300736ffbaa7] | committer: Rémi Denis-Courmont 

Qt4: remove intf_UserFatal back-end

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57aea111c80b6f694fae794bab3d300736ffbaa7
---

 modules/gui/qt4/dialogs/interaction.cpp |   15 +--------------
 modules/gui/qt4/dialogs_provider.cpp    |    3 +--
 2 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/modules/gui/qt4/dialogs/interaction.cpp b/modules/gui/qt4/dialogs/interaction.cpp
index c2cfeb8..7b9ab6d 100644
--- a/modules/gui/qt4/dialogs/interaction.cpp
+++ b/modules/gui/qt4/dialogs/interaction.cpp
@@ -48,20 +48,7 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
     dialog = NULL;
     altButton = NULL;
 
-    if( p_dialog->i_flags & DIALOG_BLOCKING_ERROR )
-    {
-        i_ret = QMessageBox::critical( NULL, qfu( p_dialog->psz_title ),
-                                       qfu( p_dialog->psz_description ),
-                                       QMessageBox::Ok, QMessageBox::Ok );
-    }
-    else if( p_dialog->i_flags & DIALOG_NONBLOCKING_ERROR )
-    {
-        if( config_GetInt( p_intf, "qt-error-dialogs" ) != 0 )
-            ErrorsDialog::getInstance( p_intf )->addError(
-                 qfu( p_dialog->psz_title ), qfu( p_dialog->psz_description ) );
-        i_ret = QMessageBox::AcceptRole;
-    }
-    else if( p_dialog->i_flags & DIALOG_YES_NO_CANCEL )
+    if( p_dialog->i_flags & DIALOG_YES_NO_CANCEL )
     {
         p_dialog->i_status = SENT_DIALOG;
 
diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index bf0246d..59f1af3 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -714,8 +714,7 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
     case INTERACT_DESTROY:
         msg_Dbg( p_intf, "Destroy the Interaction Dialog" );
         qdialog = (InteractionDialog*)(p_dialog->p_private);
-        if( !p_dialog->i_flags & DIALOG_NONBLOCKING_ERROR )
-            delete qdialog;
+        delete qdialog;
         p_dialog->i_status = DESTROYED_DIALOG;
         break;
     }




More information about the vlc-devel mailing list