]> git.sesse.net Git - vlc/commitdiff
Qt4: fix open dialog issue when file browser is embedded
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Jul 2010 23:20:56 +0000 (01:20 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Jul 2010 23:20:56 +0000 (01:20 +0200)
Close #3893

modules/gui/qt4/components/open_panels.cpp

index b257900bfbe6631efb08e274808041ece92a94dc..6431ebddcdad9307aaa629b809488eefb9c60ebe 100644 (file)
@@ -271,7 +271,11 @@ void FileOpenPanel::updateMRL()
                 fileList << ui.fileListWidg->item( i )->text();
         }
     else
+    {
         fileList = dialogBox->selectedFiles();
+        for( int i = 0; i < fileList.count(); i++ )
+            fileList[i] = toNativeSeparators( fileList[i] );
+    }
 
     /* Options */
     if( ui.subCheckBox->isChecked() &&  !ui.subInput->text().isEmpty() ) {