Qt Gui: allow opening multiple files at the same time

metadata
Wenzel Jakob 2013-11-13 14:15:38 +01:00
parent 7df82cee18
commit ff7a86c755
1 changed files with 1 additions and 0 deletions

View File

@ -570,6 +570,7 @@ void MainWindow::on_actionOpen_triggered() {
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->setAcceptMode(QFileDialog::AcceptOpen);
dialog->setViewMode(QFileDialog::Detail);
dialog->setFileMode(QFileDialog::ExistingFiles);
dialog->setWindowModality(Qt::WindowModal);
QSettings settings;
dialog->restoreState(settings.value("fileDialogState").toByteArray());