Commit 9720a180 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: store 30 recents item, show 10 in the menus

parent c407f5e0
...@@ -1605,7 +1605,7 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf ) ...@@ -1605,7 +1605,7 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
} }
else else
{ {
for( int i = 0; i < l.count(); ++i ) for( int i = 0; i < __MIN( l.count(), 10) ; ++i )
{ {
QString mrl = l.at( i ); QString mrl = l.at( i );
char *psz = decode_URI_duplicate( qtu( mrl ) ); char *psz = decode_URI_duplicate( qtu( mrl ) );
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
class QRegExp; class QRegExp;
class QSignalMapper; class QSignalMapper;
#define RECENTS_LIST_SIZE 10 #define RECENTS_LIST_SIZE 30
class Open class Open
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment