[vlc-devel] [PATCH 2/2] Qt: fix an utf8 encoding issue in the recents menu

Ludovic Fauvet etix at videolan.org
Thu Dec 15 01:21:13 CET 2011


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
---
 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 );
         }
     }
 
-- 
1.7.8




More information about the vlc-devel mailing list