Allow to select multiple files in non-native FileOpen dialog.

This commit is contained in:
LoRd_MuldeR 2011-01-02 22:04:45 +01:00
parent 1c9cb08b75
commit 3b598fbdf9

View File

@ -818,6 +818,7 @@ void MainWindow::addFilesButtonClicked(void)
{ {
QFileDialog dialog(this, tr("Add file(s)")); QFileDialog dialog(this, tr("Add file(s)"));
QStringList fileTypeFilters = DecoderRegistry::getSupportedTypes(); QStringList fileTypeFilters = DecoderRegistry::getSupportedTypes();
dialog.setFileMode(QFileDialog::ExistingFiles);
dialog.setNameFilter(fileTypeFilters.join(";;")); dialog.setNameFilter(fileTypeFilters.join(";;"));
if(dialog.exec()) if(dialog.exec())
{ {