From 1bb0a896f5ae2782df12212be3f4ef8aff2655ff Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 7 Oct 2020 17:14:12 +0300 Subject: [PATCH] Update base lists after changing restrictions. --- src/app/tape/tmainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 7c7c673a7..49eaad996 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -2205,6 +2205,7 @@ void TMainWindow::RestrictSecondDimesion() m->SetRestrictions(dialog.Restrictions()); MeasurementsWereSaved(false); + DimensionABaseChanged(); // trigger refresh } //--------------------------------------------------------------------------------------------------------------------- @@ -2224,6 +2225,7 @@ void TMainWindow::RestrictThirdDimesion() m->SetRestrictions(dialog.Restrictions()); MeasurementsWereSaved(false); + DimensionABaseChanged(); // trigger refresh } //--------------------------------------------------------------------------------------------------------------------- @@ -2624,6 +2626,10 @@ void TMainWindow::InitDimensionGradation(int index, const MeasurementDimension_p } } + // after initialization the current index is 0. The signal for changing the index will not be triggered if not make + // it invalid first + control->setCurrentIndex(-1); + int i = control->findData(current); if (i != -1) {