From 4a72ac2d2b2804f29fdcca0459b71a5ea1769939 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 6 Sep 2015 13:06:15 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/divelogimportdialog.cpp') 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); -- cgit v1.2.3-70-g09d2