mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
e4353cb4a7
commit
7e50711bd3
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue