summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-24 17:03:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 14:48:45 -0800
commitb29a1bfb7b3b82d12cc37d9c14d675c6eac84868 (patch)
tree0626cf58e793a84d02ab79254ed4783d9afd6c67 /qt-ui/divelogimportdialog.cpp
parentd9fd4cb69bbc3420cc78639778496b4746a61f5b (diff)
downloadsubsurface-b29a1bfb7b3b82d12cc37d9c14d675c6eac84868.tar.gz
CSV import, fix known import handling with tab separator
When we have the separator as tab, we need to use the proper tab character instead of the string for known imports. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r--qt-ui/divelogimportdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 08e5dd110..fe8e0a505 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -432,7 +432,8 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
if (triggeredBy == KNOWNTYPES && value != 0) {
// an actual known type
separator = CSVApps[value].separator;
- if (ui->CSVSeparator->currentText() != separator) {
+
+ if (ui->CSVSeparator->currentText() != separator || separator == "Tab") {
blockSignals(true);
ui->CSVSeparator->setCurrentText(separator);
blockSignals(false);