diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-08-07 19:12:28 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-09 23:55:53 -0700 |
commit | 7e50711bd38cd9dcc36693dfc0330f5e1d565700 (patch) | |
tree | 7c02150d5a03ed34579ce7721f3811e2c335082c | |
parent | e4353cb4a73d99a3baeff93ea638047e038f2a65 (diff) | |
download | subsurface-7e50711bd38cd9dcc36693dfc0330f5e1d565700.tar.gz |
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>
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |