diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-24 17:03:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-24 14:48:45 -0800 |
commit | b29a1bfb7b3b82d12cc37d9c14d675c6eac84868 (patch) | |
tree | 0626cf58e793a84d02ab79254ed4783d9afd6c67 /qt-ui | |
parent | d9fd4cb69bbc3420cc78639778496b4746a61f5b (diff) | |
download | subsurface-b29a1bfb7b3b82d12cc37d9c14d675c6eac84868.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |