[PATCH 01/11] CSV import, fix known import handling with tab separator

Miika Turkia miika.turkia at gmail.com
Sat Jan 24 07:03:08 PST 2015


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 at gmail.com>
---
 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



More information about the subsurface mailing list