Commit 149269f5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: fix DIR_SEP on open.

Should fix #2142
parent 1cbd0f6b
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment