]> git.sesse.net Git - vlc/commitdiff
qt4: the verbosity can't be higher than 2
authorLudovic Fauvet <etix@videolan.org>
Fri, 8 Jun 2012 20:33:02 +0000 (22:33 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 9 Jun 2012 21:04:31 +0000 (23:04 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/dialogs/messages.cpp

index c494ab222a335924ad13ece77a24edd920c74dfd..4d231135dd8af481a105fc98d2e08317e2f4168a 100644 (file)
@@ -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 )