From 3b598fbdf9984b6ef78145f8c93e0d006e662e9d Mon Sep 17 00:00:00 2001 From: lordmulder Date: Sun, 2 Jan 2011 22:04:45 +0100 Subject: [PATCH] Allow to select multiple files in non-native FileOpen dialog. --- src/Dialog_MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dialog_MainWindow.cpp b/src/Dialog_MainWindow.cpp index da119193..90ab4d4a 100644 --- a/src/Dialog_MainWindow.cpp +++ b/src/Dialog_MainWindow.cpp @@ -818,6 +818,7 @@ void MainWindow::addFilesButtonClicked(void) { QFileDialog dialog(this, tr("Add file(s)")); QStringList fileTypeFilters = DecoderRegistry::getSupportedTypes(); + dialog.setFileMode(QFileDialog::ExistingFiles); dialog.setNameFilter(fileTypeFilters.join(";;")); if(dialog.exec()) {