postpone deletion of caldialog to prevent race condition crash
This commit is contained in:
parent
993957d4d2
commit
542b07f52c
@ -904,7 +904,7 @@ void VNA::NewDatapoint(DeviceDriver::VNAMeasurement m)
|
||||
cal.addMeasurements(calMeasurements, m_avg);
|
||||
if(m_avg.pointNum == settings.npoints - 1) {
|
||||
calMeasuring = false;
|
||||
delete calDialog;
|
||||
calDialog->deleteLater();
|
||||
calDialog = nullptr;
|
||||
cal.measurementsComplete();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user