summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-09-06 13:06:15 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-06 07:40:45 -0700
commit4a72ac2d2b2804f29fdcca0459b71a5ea1769939 (patch)
treec1a4de9791d28e0d340d04c4f71c2f772979d06e /qt-ui/divelogimportdialog.cpp
parente8df3da9e3110a4e81cba49f02cdda1f35dc57fa (diff)
downloadsubsurface-4a72ac2d2b2804f29fdcca0459b71a5ea1769939.tar.gz
CSV import: improve header parsing
The skipping of header field manipulation for APD was a bit too aggressive, skipping the header fix up for all logs when on initial state. Also, addition of APD2 was not taken into account. 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 12e36662a..baf91deac 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -501,7 +501,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
* also know that the column headers do not need this
* conversion.
*/
- if (triggeredBy == KNOWNTYPES && value != APD) {
+ if (apd == false) {
columnText.replace("\"", "");
columnText.replace("number", "#", Qt::CaseInsensitive);
columnText.replace("2", "₂", Qt::CaseInsensitive);