[vlc-devel] commit: Qt4: fix DIR_SEP on open. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun May 17 02:07:39 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 17 02:06:49 2009 +0200| [4d12099cf4e087eb6bf3a973b6a8c6754f3b2618] | committer: Jean-Baptiste Kempf
Qt4: fix DIR_SEP on open.
Should fix #2142
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d12099cf4e087eb6bf3a973b6a8c6754f3b2618
---
modules/gui/qt4/components/open_panels.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 25b7cf4..a80e89b 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -166,7 +166,7 @@ void FileOpenPanel::browseFile()
QStringList files = QFileDialog::getOpenFileNames( this );
foreach( const QString &file, files)
{
- QListWidgetItem *item = new QListWidgetItem( file, ui.fileListWidg );
+ QListWidgetItem *item = new QListWidgetItem( toNativeSeparators( file ), ui.fileListWidg );
item->setFlags( Qt::ItemIsEditable | Qt::ItemIsEnabled );
ui.fileListWidg->addItem( item );
}
@@ -193,7 +193,7 @@ void FileOpenPanel::browseFileSub()
EXT_FILTER_SUBTITLE, p_intf->p_sys->filepath );
if( files.isEmpty() ) return;
- ui.subInput->setText( files.join(" ") );
+ ui.subInput->setText( toNativeSeparators( files.join(" ") ) );
updateMRL();
}
More information about the vlc-devel
mailing list