[vlc-commits] Qt: store 30 recents item, show 10 in the menus
Jean-Baptiste Kempf
git at videolan.org
Mon May 19 14:47:30 CEST 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 19 14:17:24 2014 +0200| [9720a1807697daa3657f4b4c02e253014745a31f] | committer: Jean-Baptiste Kempf
Qt: store 30 recents item, show 10 in the menus
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9720a1807697daa3657f4b4c02e253014745a31f
---
modules/gui/qt4/menus.cpp | 2 +-
modules/gui/qt4/recents.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 467e673..0935346 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1605,7 +1605,7 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
}
else
{
- for( int i = 0; i < l.count(); ++i )
+ for( int i = 0; i < __MIN( l.count(), 10) ; ++i )
{
QString mrl = l.at( i );
char *psz = decode_URI_duplicate( qtu( mrl ) );
diff --git a/modules/gui/qt4/recents.hpp b/modules/gui/qt4/recents.hpp
index 6509cca..77c8620 100644
--- a/modules/gui/qt4/recents.hpp
+++ b/modules/gui/qt4/recents.hpp
@@ -33,7 +33,7 @@
class QRegExp;
class QSignalMapper;
-#define RECENTS_LIST_SIZE 10
+#define RECENTS_LIST_SIZE 30
class Open
{
More information about the vlc-commits
mailing list