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 <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-01-24 17:03:08 +02:00 committed by Dirk Hohndel
parent d9fd4cb69b
commit b29a1bfb7b

View file

@ -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);