]> git.sesse.net Git - vlc/commitdiff
Escape files when drag'n dropped... Hopefully fix #1525.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 2 Apr 2008 00:08:17 +0000 (17:08 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 2 Apr 2008 00:11:26 +0000 (17:11 -0700)
modules/gui/qt4/main_interface.cpp

index 030ec42b17cb51c009041c46e4bf88ee47809558..6290c1f99a8b47d7e576d22649a8d0599ad26f5d 100644 (file)
@@ -1093,8 +1093,9 @@ void MainInterface::dropEvent(QDropEvent *event)
         }
      }
      bool first = true;
-     foreach( QUrl url, mimeData->urls() ) {
-        QString s = url.toString();
+     foreach( QUrl url, mimeData->urls() )
+     {
+        QString s = "\"" + url.toString() + "\"";
         if( s.length() > 0 ) {
             playlist_Add( THEPL, qtu(s), NULL,
                           PLAYLIST_APPEND | (first ? PLAYLIST_GO:0),