aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-10 07:42:13 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-11 14:28:19 -0700
commit6a9c4097c04c3b89f63c663ecd232cf70774e2e6 (patch)
tree0fefbb6acb57029f0a0a319b92ac0788ba7e8d36 /qt-ui/divelogexportdialog.cpp
parentc0593662b95f1041c0ea7850dacc82bf4f678f99 (diff)
downloadsubsurface-6a9c4097c04c3b89f63c663ecd232cf70774e2e6.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp3
1 files changed, 1 insertions, 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;