summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-27 16:13:30 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-27 06:34:43 -0700
commit6953824bd639fd8bcf63b1c053c6560370460f48 (patch)
tree653dac5e83373fef552f814e2ef343d3cc3313d0 /qt-ui
parent3ef5dbaacb6be129f3d4e7b72fcf86b95e5c8fa4 (diff)
downloadsubsurface-6953824bd639fd8bcf63b1c053c6560370460f48.tar.gz
CSV import: add support for DC hw info
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelogimportdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 24cb805bb..29138da87 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -665,7 +665,8 @@ void DiveLogImportDialog::on_buttonBox_accepted()
r.indexOf(tr("Sample setpoint")),
ui->CSVSeparator->currentIndex(),
specialCSV.contains(ui->knownImports->currentIndex()) ? CSVApps[ui->knownImports->currentIndex()].name.toUtf8().data() : "csv",
- ui->CSVUnits->currentIndex()
+ ui->CSVUnits->currentIndex(),
+ ui->knownImports->currentText().prepend("\"").append("\"").toUtf8().data()
);
}
}
@@ -716,7 +717,8 @@ void DiveLogImportDialog::on_buttonBox_accepted()
r.indexOf(tr("Sample setpoint")),
ui->CSVSeparator->currentIndex(),
specialCSV.contains(ui->knownImports->currentIndex()) ? CSVApps[ui->knownImports->currentIndex()].name.toUtf8().data() : "csv",
- ui->CSVUnits->currentIndex()
+ ui->CSVUnits->currentIndex(),
+ ui->knownImports->currentText().prepend("\"").append("\"").toUtf8().data()
);
}
}