Update base lists after changing restrictions.
This commit is contained in:
parent
506ce6fb5e
commit
1bb0a896f5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user