From 839547bdd2759c31dd26c7e8cf2d82a58372f812 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 9 Nov 2020 13:15:48 +0200 Subject: [PATCH] Init not mandatory columns with Skip option. --- src/app/tape/dialogs/dialogmeasurementscsvcolumns.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/tape/dialogs/dialogmeasurementscsvcolumns.cpp b/src/app/tape/dialogs/dialogmeasurementscsvcolumns.cpp index cade0dfb6..7d7ba78c4 100644 --- a/src/app/tape/dialogs/dialogmeasurementscsvcolumns.cpp +++ b/src/app/tape/dialogs/dialogmeasurementscsvcolumns.cpp @@ -579,7 +579,15 @@ void DialogMeasurementsCSVColumns::InitColumnsControls() else { control->blockSignals(false); - control->setCurrentIndex(0); + + if (not ColumnMandatory(column)) + { + control->setCurrentIndex(control->findData(-1)); + } + else + { + control->setCurrentIndex(0); + } } };