[vlc-commits] qt4: the verbosity can't be higher than 2

Ludovic Fauvet git at videolan.org
Sat Jun 9 23:07:40 CEST 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Jun  8 22:33:02 2012 +0200| [51220a6a95cc2e19e4d87c9abb5ad672580f5e96] | committer: Jean-Baptiste Kempf

qt4: the verbosity can't be higher than 2

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

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

 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 )



More information about the vlc-commits mailing list