diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-07 15:11:54 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-07 15:11:54 -0800 |
commit | a51110b0d0148fc31b06e36ded45731bbb6de0af (patch) | |
tree | 7f975d991777cbca8b1fc4ff3fba529b2c0bdb3f | |
parent | e3aebfdd6664f2b5127894c82364fea466b27027 (diff) | |
download | subsurface-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.cpp | 4 |
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()) { |