]> git.sesse.net Git - vlc/commitdiff
Fix the drag'n drop of directories on windows. Thanks to rohanpm on #qt for the idea...
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Apr 2008 00:20:18 +0000 (17:20 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Apr 2008 00:20:37 +0000 (17:20 -0700)
modules/gui/qt4/main_interface.cpp

index 39c4c001e967f05b79b5b1803aa701f80df0deb6..0917be034b4ba09b690be62e0ce03ecef4a048c6 100644 (file)
@@ -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),