[vlc-commits] Qt4: negative days for updates checking makes no sense

Jean-Baptiste Kempf git at videolan.org
Mon Jul 2 00:47:59 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan  2 22:25:58 2012 +0100| [4848daf2925a93307643283f958b07d3423eb2de] | committer: Jean-Baptiste Kempf

Qt4: negative days for updates checking makes no sense
(cherry picked from commit b85cc5537812613a2988651c851b08fa34b7516a)

Close #7040

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

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=4848daf2925a93307643283f958b07d3423eb2de
---

 modules/gui/qt4/qt4.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 0c69a72..7ff935f 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -231,8 +231,8 @@ vlc_module_begin ()
 #ifdef UPDATE_CHECK
     add_bool( "qt-updates-notif", true, UPDATER_TEXT,
               UPDATER_LONGTEXT, false )
-    add_integer( "qt-updates-days", 3, UPDATER_DAYS_TEXT,
-                 UPDATER_DAYS_TEXT, false )
+    add_integer_with_range( "qt-updates-days", 3, 0, 180,
+              UPDATER_DAYS_TEXT, UPDATER_DAYS_TEXT, false )
 #endif
 
     add_bool( "qt-autosave-volume", true, SAVEVOL_TEXT,



More information about the vlc-commits mailing list