[vlc-devel] commit: Qt4: fix DIR_SEP on open. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun May 17 03:21:12 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 17 02:06:49 2009 +0200| [149269f5846cb5bbbee3803168e0b84a979244e9] | committer: Jean-Baptiste Kempf
Qt4: fix DIR_SEP on open.
Should fix #2142
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=149269f5846cb5bbbee3803168e0b84a979244e9
---
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