Update base lists after changing restrictions.

This commit is contained in:
Roman Telezhynskyi 2020-10-07 17:14:12 +03:00
parent 506ce6fb5e
commit 1bb0a896f5

View File

@ -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)
{