From 8796e33a5ae150d629c2cfc5451658de134d923f Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Tue, 19 May 2009 20:32:15 +0200 Subject: [PATCH] win32: Add recent files to jump lists --- modules/gui/qt4/recents.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp index 82a20e137c..bb6768e69b 100644 --- a/modules/gui/qt4/recents.cpp +++ b/modules/gui/qt4/recents.cpp @@ -33,6 +33,10 @@ #include #include +#ifdef WIN32 +#include +#endif + RecentsMRL* RecentsMRL::instance = NULL; RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf ) @@ -66,7 +70,9 @@ void RecentsMRL::addRecent( const QString &mrl ) { if ( !isActive || ( filter && filter->indexIn( mrl ) >= 0 ) ) return; - +#ifdef WIN32 + SHAddToRecentDocs( 0x00000002 , qtu( mrl ) ); +#endif msg_Dbg( p_intf, "Adding a new MRL to recent ones: %s", qtu( mrl ) ); int i_index = stack->indexOf( mrl ); if( 0 <= i_index ) @@ -82,6 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl ) } QVLCMenu::updateRecents( p_intf ); save(); + } void RecentsMRL::clear() -- 2.39.2