mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:43:23 +00:00
Pre-configured CSV imports should also set the field separator
Pre-configured imports in Import Dive Log File for CSV files should also set the pre-defined field separator. [Dirk Hohndel: cleaned up hideous whitespace] Signed-off-by:Rodrigo Severo <rodrigo@fabricadeideias.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
13d4c48e6a
commit
3a3d61ba53
1 changed files with 6 additions and 1 deletions
|
@ -90,6 +90,11 @@ void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index)
|
|||
SET_VALUE_AND_CHECKBOX(CSVpo2, po2CheckBox, CSVApps[index].po2);
|
||||
SET_VALUE_AND_CHECKBOX(CSVcns, cnsCheckBox, CSVApps[index].cns);
|
||||
SET_VALUE_AND_CHECKBOX(CSVstopdepth, stopdepthCheckBox, CSVApps[index].stopdepth);
|
||||
ui->CSVSeparator->blockSignals(true);
|
||||
int separator_index = ui->CSVSeparator->findText(CSVApps[index].separator);
|
||||
if (separator_index != -1)
|
||||
ui->CSVSeparator->setCurrentIndex(separator_index);
|
||||
ui->CSVSeparator->blockSignals(false);
|
||||
}
|
||||
|
||||
void DiveLogImportDialog::unknownImports(bool arg1)
|
||||
|
|
Loading…
Add table
Reference in a new issue