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>
This commit is contained in:
parent
4a72ac2d2b
commit
67aca27501
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user