From b29a1bfb7b3b82d12cc37d9c14d675c6eac84868 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 24 Jan 2015 17:03:08 +0200 Subject: CSV import, fix known import handling with tab separator When we have the separator as tab, we need to use the proper tab character instead of the string for known imports. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/divelogimportdialog.cpp') diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 08e5dd110..fe8e0a505 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -432,7 +432,8 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy) if (triggeredBy == KNOWNTYPES && value != 0) { // an actual known type separator = CSVApps[value].separator; - if (ui->CSVSeparator->currentText() != separator) { + + if (ui->CSVSeparator->currentText() != separator || separator == "Tab") { blockSignals(true); ui->CSVSeparator->setCurrentText(separator); blockSignals(false); -- cgit v1.2.3-70-g09d2