From 0a71b6c030eef44f00ac8a3ab0ecebfa4a50ff54 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 20 Jan 2021 20:22:24 +0200 Subject: [PATCH] Update comboboxes when sync measurements. --- src/app/valentina/mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 5aecfe66b..e7fc4878a 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -593,6 +593,13 @@ bool MainWindow::UpdateMeasurements(const QString &path, qreal baseA, qreal base try { pattern->ClearVariables(VarType::Measurement); + + if (not m->Dimensions().isEmpty()) + { + InitDimensionGradation(0, m->Dimensions().values().at(0), dimensionA); + DimensionABaseChanged(); + } + m->StoreNames(false); m->ReadMeasurements(baseA, baseB, baseC); if (m->Type() == MeasurementsType::Individual)