]> git.sesse.net Git - vlc/commitdiff
Qt4: use percent-encoding on dnd filenames
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 18 Aug 2010 12:46:14 +0000 (15:46 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 18 Aug 2010 12:46:14 +0000 (15:46 +0300)
Should fix #4078 , same issue was in linux side also.

modules/gui/qt4/main_interface.cpp

index 17810d90963031d0e7e49a929697a052bf04b00f..5711dd29be404fdd7ffbaa8085291d7d4b4bead5 100644 (file)
@@ -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 );