From 67aca275015bf82a5c60e39cc1d62c251153212d Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 6 Sep 2015 13:06:16 +0300 Subject: [PATCH] CSV import: fix import of Sensus and Subsurface When adding APD2 import, the Sensus and Subsurface indexes should have been increased by 1. While fixing this, switch to using enum names for clarity. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index baf91deac..eb1993474 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -333,8 +333,8 @@ DiveLogImportDialog::DiveLogImportDialog(QStringList fn, QWidget *parent) : QDia hw = ""; /* Add indexes of XSLTs requiring special handling to the list */ - specialCSV << 3; - specialCSV << 5; + specialCSV << SENSUS; + specialCSV << SUBSURFACE; for (int i = 0; !CSVApps[i].name.isNull(); ++i) ui->knownImports->addItem(CSVApps[i].name);