vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Sat Apr 27 12:33:03 2013 +0200| [c17b06099f4e3bd352219e8c82b1dad12819f760] | committer: Jean-Baptiste Kempf
Qt: different call to SHAddToRecentDocs Should close #7696 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c17b06099f4e3bd352219e8c82b1dad12819f760 --- modules/gui/qt4/recents.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp index 12a892c..e792995 100755 --- a/modules/gui/qt4/recents.cpp +++ b/modules/gui/qt4/recents.cpp @@ -45,6 +45,8 @@ SHARD_SHELLITEM = 0x00000008 } SHARD; */ #define SHARD_PATHW 0x00000003 + + #include <vlc_charset.h> #endif @@ -91,7 +93,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 _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
