Allow to select more than one file in the 'open file' dialog

BUGS: 395175

Differential Revision: https://phabricator.kde.org/D13667
This commit is contained in:
Oliver Sander 2018-06-21 21:43:11 +02:00
parent 1bc4fb0dd9
commit 862b2ab664

View file

@ -442,6 +442,7 @@ void Shell::fileOpen()
dlg->setDirectoryUrl( startDir );
dlg->setAcceptMode( QFileDialog::AcceptOpen );
dlg->setOption( QFileDialog::HideNameFilterDetails, true );
dlg->setFileMode( QFileDialog::ExistingFiles ); // Allow selection of more than one file
QMimeDatabase mimeDatabase;
QSet<QString> globPatterns;