summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-21 17:53:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-21 21:51:54 -0800
commit74f5842f0c324fdd2d0217e90c11da6c70319f6e (patch)
tree421927bd5a58ee3986ce6ebfe9dfc5dca215041e /qt-ui/divelogexportdialog.cpp
parent1ba4137fec5b7f83b37c9165e1081f4062c50052 (diff)
downloadsubsurface-74f5842f0c324fdd2d0217e90c11da6c70319f6e.tar.gz
Add second CSV export with dive details
This is intended to export all the details that someone might copy from a paper logbook. We need a matching import template to make this simple. This hasn't been well tested, I'm sure it will break when elements and attributes are missing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 965af494f..a237c9941 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -272,6 +272,10 @@ void DiveLogExportDialog::on_buttonBox_accepted()
stylesheet = "xml2csv.xslt";
filename = QFileDialog::getSaveFileName(this, tr("Export CSV file as"), lastDir,
tr("CSV files (*.csv *.CSV)"));
+ } else if (ui->exportCSVDetails->isChecked()) {
+ stylesheet = "xml2manualcsv.xslt";
+ filename = QFileDialog::getSaveFileName(this, tr("Export CSV file as"), lastDir,
+ tr("CSV files (*.csv *.CSV)"));
} else if (ui->exportDivelogs->isChecked()) {
DivelogsDeWebServices::instance()->prepareDivesForUpload(ui->exportSelected->isChecked());
} else if (ui->exportDiveshare->isChecked()) {