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)"));
|
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())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user