diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-09-06 13:06:15 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-06 07:40:45 -0700 |
commit | 4a72ac2d2b2804f29fdcca0459b71a5ea1769939 (patch) | |
tree | c1a4de9791d28e0d340d04c4f71c2f772979d06e /qt-ui/divelogimportdialog.cpp | |
parent | e8df3da9e3110a4e81cba49f02cdda1f35dc57fa (diff) | |
download | subsurface-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.cpp | 2 |
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); |