[vlc-devel] commit: Escape files when drag'n dropped... Hopefully fix #1525. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Apr 2 02:10:44 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr  1 17:08:17 2008 -0700| [4ce6c3f34b0807c7ee8db8739bdbdb9773d42f56]

Escape files when drag'n dropped... Hopefully fix #1525.

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

 modules/gui/qt4/main_interface.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 030ec42..6290c1f 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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),




More information about the vlc-devel mailing list