re-compute calibration when a measurement is updated

This commit is contained in:
Jan Käberich 2024-03-05 18:26:02 +01:00
parent b26dc41907
commit dd587a3230

View file

@ -620,6 +620,15 @@ void Calibration::edit()
connect(this, &Calibration::measurementsUpdated, d, [=](){
updateMeasurementTable();
updateCalibrationList();
if(caltype.type != Type::None) {
// update the calibration with the new measurement
if(canCompute(caltype)) {
compute(caltype);
} else {
// can not keep the calibration, disabled
deactivate();
}
}
});
connect(ui->clearMeasurement, &QPushButton::clicked, [=](){