[vlc-commits] Qt: fix an utf8 encoding issue in the recents menu

Ludovic Fauvet git at videolan.org
Thu Dec 15 23:57:23 CET 2011


vlc/vlc-1.2 | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Dec 15 01:21:13 2011 +0100| [f99cc707503f61a3b7648a49192a6a91df5757ac] | committer: Jean-Baptiste Kempf

Qt: fix an utf8 encoding issue in the recents menu

The MRL received from a drag & drop was not converted correctly to an
URI (using toURI) before being saved into the configuration. This was
causing multi bytes characters to be serialized in UTF8 (\x????) and be
given as-is to decode_URI which is not able to decode them.
Close #5662

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 49571193a5311674483608cd91811ef23f8f0391)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/main_interface.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 0ae87b6..0e88231 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1223,7 +1223,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
                           PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
                           PLAYLIST_END, true, pl_Unlocked );
             first = false;
-            RecentsMRL::getInstance( p_intf )->addRecent( url.toString() );
+            RecentsMRL::getInstance( p_intf )->addRecent( mrl );
         }
     }
 



More information about the vlc-commits mailing list