From 6a9c4097c04c3b89f63c663ecd232cf70774e2e6 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 10 Jun 2014 07:42:13 -0300 Subject: [PATCH] Change the QDialog for html export to getExistingFolder The QDialog for html creates a folder, we need to choose a folder, not a file. getSaveFileName was wrong. ;p Fixes #533 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelogexportdialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 602d45035..84be70be5 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -176,8 +176,7 @@ void DiveLogExportDialog::on_buttonBox_accepted() } break; case 1: - filename = QFileDialog::getSaveFileName(this, tr("Export Subsurface"), lastDir, - tr("Folders"), 0, QFileDialog::ShowDirsOnly); + filename = QFileDialog::getExistingDirectory(this, tr("Export Subsurface"), lastDir); if (!filename.isNull() && !filename.isEmpty()) exportHtmlInit(filename); break;