[vlc-devel] commit: Fix the drag'n drop of directories on windows. Thanks to rohanpm on #qt for the idea. Close #1525 (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Apr 18 02:19:47 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 17 17:20:18 2008 -0700| [ca4637c314785f182ea37987403fd17cdbef4f8b]

Fix the drag'n drop of directories on windows. Thanks to rohanpm on #qt for the idea. Close #1525

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

 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 39c4c00..0917be0 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1095,7 +1095,7 @@ void MainInterface::dropEvent(QDropEvent *event)
      bool first = true;
      foreach( QUrl url, mimeData->urls() )
      {
-        QString s = url.toString();
+        QString s = url.toLocalFile();
         if( s.length() > 0 ) {
             playlist_Add( THEPL, qtu(s), NULL,
                           PLAYLIST_APPEND | (first ? PLAYLIST_GO:0),




More information about the vlc-devel mailing list