mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f576c16f75
commit
65267e6e9d
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue