[vlc-commits] commit: Qt4: use percent-encoding on dnd filenames (Ilkka Ollakka )

git at videolan.org git at videolan.org
Wed Aug 18 14:47:29 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Aug 18 15:46:14 2010 +0300| [9683d8870fba25e4642610c5545d7660f21dd5b5] | committer: Ilkka Ollakka 

Qt4: use percent-encoding on dnd filenames

Should fix #4078 , same issue was in linux side also.

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

 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 17810d9..5711dd2 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1074,7 +1074,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
     {
         if( url.isValid() )
         {
-            char* psz_uri = make_URI( qtu( url.toString() ), NULL );
+            char* psz_uri = make_URI( url.toEncoded().constData(), NULL );
             playlist_Add( THEPL, psz_uri, NULL,
                           PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
                           PLAYLIST_END, true, pl_Unlocked );



More information about the vlc-commits mailing list