[vlc-commits] commit: Qt4: fix open dialog issue when file browser is embedded ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sat Jul 17 01:24:50 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jul 17 01:20:56 2010 +0200| [4acafe194beebc33e1c54b03494913cb32536e2c] | committer: Jean-Baptiste Kempf 

Qt4: fix open dialog issue when file browser is embedded

Close #3893
(cherry picked from commit e2254d4cc2ad6e358bc707e60a88015de3af4a44)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/open_panels.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index c59b804..2769853 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -229,7 +229,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() ) {



More information about the vlc-commits mailing list