From 7e50711bd38cd9dcc36693dfc0330f5e1d565700 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Fri, 7 Aug 2015 19:12:28 +0300 Subject: Set proper mode for file open dialog Fixes #913 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 4f8241586..db1d8c8b7 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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(); -- cgit v1.2.3-70-g09d2