summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-09-06 13:06:16 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-06 07:40:54 -0700
commit67aca275015bf82a5c60e39cc1d62c251153212d (patch)
tree4fc6820dacc220955a7b714ce42680f65472032b /qt-ui
parent4a72ac2d2b2804f29fdcca0459b71a5ea1769939 (diff)
downloadsubsurface-67aca275015bf82a5c60e39cc1d62c251153212d.tar.gz
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 <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelogimportdialog.cpp4
1 files 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);