diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-09-06 13:06:18 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-06 07:41:10 -0700 |
commit | 65267e6e9d93a484377346fc826daf2438665642 (patch) | |
tree | 8793bba633f8abc270ac857b3e85c236344b014c /qt-ui/divelogimportdialog.cpp | |
parent | f576c16f75dda2b8727afe544d5884dc59baf9bf (diff) | |
download | subsurface-65267e6e9d93a484377346fc826daf2438665642.tar.gz |
CSV import: default formats for Subsurface import
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 <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index d23efbcd1..49b68174e 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); } } |