Commit 49571193 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 60cff20c
...@@ -1223,7 +1223,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play ) ...@@ -1223,7 +1223,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE), PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
PLAYLIST_END, true, pl_Unlocked ); PLAYLIST_END, true, pl_Unlocked );
first = false; first = false;
RecentsMRL::getInstance( p_intf )->addRecent( url.toString() ); RecentsMRL::getInstance( p_intf )->addRecent( 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