Commit 391bb327 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

On Windows playing items like dvd:// or screen:// causes strange shortcuts in...

On Windows playing items like dvd:// or screen:// causes strange shortcuts in the user recently used folder.

See http://social.technet.microsoft.com/Forums/nb-NO/w7itprogeneral/thread/02a71215-e308-408c-94a6-81f5a8e564a6
for some information. The solution calls SHAddToRecentDocs only if make_path
returns a valid path.

Patch by anonymous VlcVelope
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1fc1506a
......@@ -88,7 +88,9 @@ void RecentsMRL::addRecent( const QString &mrl )
#ifdef WIN32
/* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs( SHARD_PATHW, qtu( mrl ) );
char* path = make_path( qtu( mrl ) );
if( path )
SHAddToRecentDocs( SHARD_PATHW, path );
#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