Commit 57397013 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>
(cherry picked from commit 391bb3272583cbe41c5dfec60141b76e9fd61d0e)
(cherry picked from commit 06ceac25f5d7a30ee585cb0f1c0b925f31234d74)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2e4fc329
...@@ -88,7 +88,12 @@ void RecentsMRL::addRecent( const QString &mrl ) ...@@ -88,7 +88,12 @@ 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( SHARD_PATHW, qtu( mrl ) ); char* path = make_path( qtu( mrl ) );
if( path )
{
SHAddToRecentDocs( SHARD_PATHW, path );
free( path );
}
#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