[vlc-devel] [PATCH 1/6] qt4: the verbosity can't be higher than 2

Ludovic Fauvet etix at videolan.org
Fri Jun 8 22:33:02 CEST 2012


---
 modules/gui/qt4/dialogs/messages.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index c494ab2..4d23113 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -87,7 +87,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
 
     int i_verbosity = var_InheritInteger( p_intf, "verbose" );
     changeVerbosity( i_verbosity );
-    ui.verbosityBox->setValue( i_verbosity );
+    ui.verbosityBox->setValue( qMin( i_verbosity, 2 ) );
 
     char *objs = var_InheritString( p_intf, "verbose-objects" );
     if( objs != NULL )
-- 
1.7.10.3




More information about the vlc-devel mailing list