aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 15:11:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 15:11:54 -0800
commita51110b0d0148fc31b06e36ded45731bbb6de0af (patch)
tree7f975d991777cbca8b1fc4ff3fba529b2c0bdb3f
parente3aebfdd6664f2b5127894c82364fea466b27027 (diff)
downloadsubsurface-a51110b0d0148fc31b06e36ded45731bbb6de0af.tar.gz
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>
-rw-r--r--qt-ui/divelogimportdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index e622c1427..dd658f785 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -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()) {