[vlc-commits] Qt: different call to SHAddToRecentDocs

Jean-Baptiste Kempf git at videolan.org
Sat Apr 27 12:38:57 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Apr 27 12:33:03 2013 +0200| [ca206a587569a530e89200d7288c827379225312] | committer: Jean-Baptiste Kempf

Qt: different call to SHAddToRecentDocs

Should close #7696

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca206a587569a530e89200d7288c827379225312
---

 modules/gui/qt4/recents.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp
index 12a892c..3a17427 100755
--- a/modules/gui/qt4/recents.cpp
+++ b/modules/gui/qt4/recents.cpp
@@ -91,7 +91,9 @@ void RecentsMRL::addRecent( const QString &mrl )
     char* path = make_path( qtu( mrl ) );
     if( path )
     {
-        SHAddToRecentDocs( SHARD_PATHW, mrl.utf16() );
+        wchar_t *wmrl = ToWide( path );
+        SHAddToRecentDocs( SHARD_PATHW, wmrl );
+        free( wmrl );
         free( path );
     }
 #endif



More information about the vlc-commits mailing list