Let's set the configs properly for Subsurface CSV import for better
usability. (Actually the only meaningful configuration is units as
others are discarded, but I could not figure out how to set that to
imperial when needed - what is the variable holding this information?)

Signed-off-by: Miika Turkia <[email protected]>
---
 qt-ui/divelogimportdialog.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index d23efbc..49b6817 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -607,6 +607,12 @@ void DiveLogImportDialog::loadFileContents(int value, 
whatChanged triggeredBy)
                        headers.replace(20, tr("Notes"));
                        headers.replace(21, tr("Weight"));
                        headers.replace(22, tr("Tags"));
+
+                       blockSignals(true);
+                       ui->CSVSeparator->setCurrentText(separator);
+                       ui->DateFormat->setCurrentText("yyyy-mm-dd");
+                       ui->DurationFormat->setCurrentText("Minutes:seconds");
+                       blockSignals(false);
                }
        }
 
-- 
2.1.4

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

Reply via email to