]> git.sesse.net Git - vlc/commitdiff
Qt: fix debug messages
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Apr 2010 09:43:56 +0000 (11:43 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Apr 2010 09:47:19 +0000 (11:47 +0200)
modules/gui/qt4/dialogs/messages.cpp

index cc32827e055fa1f845084ba9005f1fd3af5df916..3558aa2581753bf3b909dca782c26f6fa325ec25 100644 (file)
@@ -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 );
     }