CSV input UI: if we detect columns, set type to "manual" for now

We still need to re-implement the other presets.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-07 15:11:54 -08:00
parent e3aebfdd66
commit a51110b0d0

View file

@ -392,8 +392,10 @@ void DiveLogImportDialog::loadFileContents() {
headers.append("");
}
}
if (matchedSome)
if (matchedSome) {
ui->dragInstructions->setText(tr("Some column headers were pre-populated; please drag and drop the headers so they match the column they are in."));
ui->knownImports->setCurrentIndex(0); // <- that's "Manual import"
}
f.reset();
int rows = 0;
while (rows < 10 || !f.atEnd()) {