Commit 2791812f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly handle Unicode in Win7 jump lists

Closes #4142
(cherry picked from commit 36eff3f63a815dc59a4401ddece17cf2fc6dc7b6)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9f67114e
......@@ -33,9 +33,21 @@
#include <QSignalMapper>
#ifdef WIN32
#include <shlobj.h>
#include <shlobj.h>
/* typedef enum {
SHARD_PIDL = 0x00000001,
SHARD_PATHA = 0x00000002,
SHARD_PATHW = 0x00000003,
SHARD_APPIDINFO = 0x00000004,
SHARD_APPIDINFOIDLIST = 0x00000005,
SHARD_LINK = 0x00000006,
SHARD_APPIDINFOLINK = 0x00000007,
SHARD_SHELLITEM = 0x00000008
} SHARD; */
#define SHARD_PATHW 0x00000003
#endif
RecentsMRL* RecentsMRL::instance = NULL;
RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
......@@ -76,7 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl )
#ifdef WIN32
/* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs( 0x00000002 , qtu( mrl ) );
SHAddToRecentDocs( SHARD_PATHW, qtu( mrl ) );
#endif
int i_index = stack->indexOf( mrl );
......
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