Set proper mode for file open dialog

Fixes #913

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-08-07 19:12:28 +03:00 committed by Dirk Hohndel
parent e4353cb4a7
commit 7e50711bd3

View file

@ -307,7 +307,7 @@ void MainWindow::on_actionOpen_triggered()
dialog.setViewMode(QFileDialog::Detail);
dialog.setLabelText(QFileDialog::Accept, tr("Open"));
dialog.setLabelText(QFileDialog::Reject, tr("Cancel"));
dialog.setAcceptMode(QFileDialog::AcceptSave);
dialog.setAcceptMode(QFileDialog::AcceptOpen);
QStringList filenames;
if (dialog.exec())
filenames = dialog.selectedFiles();