From a51110b0d0148fc31b06e36ded45731bbb6de0af Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 7 Jan 2015 15:11:54 -0800 Subject: 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 --- qt-ui/divelogimportdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) { -- cgit v1.2.3-70-g09d2