Commit 36eff3f6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly handle Unicode in Win7 jump lists

Closes #4142
parent c47bb3b7
...@@ -33,9 +33,21 @@ ...@@ -33,9 +33,21 @@
#include <QSignalMapper> #include <QSignalMapper>
#ifdef WIN32 #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 #endif
RecentsMRL* RecentsMRL::instance = NULL; RecentsMRL* RecentsMRL::instance = NULL;
RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf ) RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
...@@ -76,7 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl ) ...@@ -76,7 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl )
#ifdef WIN32 #ifdef WIN32
/* Add to the Windows 7 default list in taskbar */ /* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs( 0x00000002 , qtu( mrl ) ); SHAddToRecentDocs( SHARD_PATHW, qtu( mrl ) );
#endif #endif
int i_index = stack->indexOf( mrl ); 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