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 <[email protected]>
---
 qt-ui/divelogimportdialog.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 08e5dd1..fe8e0a5 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);
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to