[vlc-commits] commit: Qt: fix debug messages (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sat May 1 00:27:02 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 30 11:43:56 2010 +0200| [c23f1289f9fbc475c310f22d4c7346887b28acbc] | committer: Jean-Baptiste Kempf 

Qt: fix debug messages
(cherry picked from commit 285e972617910e6ebeb862da43174e8ca4fd3a92)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/dialogs/messages.cpp |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index cc32827..3558aa2 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -125,6 +125,10 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
 
     vbobjectsEdit->setMaximumWidth( 100 );
     vbobjectsEdit->setText(config_GetPsz( p_intf, "verbose-objects"));
+    vbobjectsEdit->setToolTip( "verbose-objects usage: \n"
+                            "--verbose-objects=+printthatobject,-dontprintthatone\n"
+                            "(keyword 'all' to applies to all objects)");
+
     vbobjectsLabel =  new QLabel( qtr( "Message filter" ) );
 
     mainLayout->addWidget( mainTab, 0, 0, 1, 0 );
@@ -190,7 +194,6 @@ void MessagesDialog::updateConfig()
 {
     config_PutPsz(p_intf, "verbose-objects", qtu(vbobjectsEdit->text()));
     //vbobjectsEdit->setText("vbEdit changed!");
-    msg_Dbg( p_intf, "Here" );
 
     char * psz_verbose_objects = strdup(qtu(vbobjectsEdit->text()));
     msg_EnableObjectPrinting(p_intf, "all");
@@ -204,12 +207,7 @@ void MessagesDialog::updateConfig()
                 printf("%s\n", psz_object+1);
                 case '+': msg_EnableObjectPrinting(p_intf, psz_object+1); break;
                 case '-': msg_DisableObjectPrinting(p_intf, psz_object+1); break;
-                default:
-                    msg_Err( p_intf, "verbose-objects usage: \n"
-                            "--verbose-objects=+printthatobject,"
-                            "-dontprintthatone\n"
-                            "(keyword 'all' to applies to all objects)");
-            }
+             }
         }
         free( psz_verbose_objects );
     }



More information about the vlc-commits mailing list