Update comboboxes when sync measurements.

This commit is contained in:
Roman Telezhynskyi 2021-01-20 20:22:24 +02:00
parent a569a20756
commit 0a71b6c030

View File

@ -593,6 +593,13 @@ bool MainWindow::UpdateMeasurements(const QString &path, qreal baseA, qreal base
try try
{ {
pattern->ClearVariables(VarType::Measurement); pattern->ClearVariables(VarType::Measurement);
if (not m->Dimensions().isEmpty())
{
InitDimensionGradation(0, m->Dimensions().values().at(0), dimensionA);
DimensionABaseChanged();
}
m->StoreNames(false); m->StoreNames(false);
m->ReadMeasurements(baseA, baseB, baseC); m->ReadMeasurements(baseA, baseB, baseC);
if (m->Type() == MeasurementsType::Individual) if (m->Type() == MeasurementsType::Individual)