Allow to select multiple files in non-native FileOpen dialog.
This commit is contained in:
parent
1c9cb08b75
commit
3b598fbdf9
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user