diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-05-21 15:23:05 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-21 22:18:36 +0900 |
commit | 19e22e1bb76d942ae17a5515c5d635a7d63f70e9 (patch) | |
tree | 05fbf1b5ff96f4e14bf8c46109691b04e19a314e /qt-ui | |
parent | 7dc642860def420f85ae25548ddfa674e14636d1 (diff) | |
download | subsurface-19e22e1bb76d942ae17a5515c5d635a7d63f70e9.tar.gz |
Add ability to export only selected dives in worldmap exporter
This patch adds the ability to export selected dives only in the worldmap
exporter. After Miika added the export dialog in commit 7dc642860def
("Implementing export dialog") and exporting only selected dives became a
choice while exporting.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelogexportdialog.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 3ac9638ad..73f90678f 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -40,13 +40,7 @@ void DiveLogExportDialog::on_buttonBox_accepted() filename = QFileDialog::getSaveFileName(this, tr("Export World Map"), fi.absolutePath(), tr("HTML files (*.html)")); if (!filename.isNull() && !filename.isEmpty()) - export_worldmap_HTML(filename.toUtf8().data()); - return; - } else if (ui->exportWorldMap->isChecked()) { - filename = QFileDialog::getSaveFileName(this, tr("Export World Map"), fi.absolutePath(), - tr("HTML files (*.html)")); - if (!filename.isNull() && !filename.isEmpty()) - export_worldmap_HTML(filename.toUtf8().data()); + export_worldmap_HTML(filename.toUtf8().data(), ui->exportSelected->isChecked()); return; } |