mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX:Crash caused by calibrating dialog constructors
JIRA: STUDIO-4416 Change-Id: I7a15b773ab4df86f3e4234dcd8275fd8e17fad19
This commit is contained in:
@@ -1879,13 +1879,11 @@ void StatusPanel::update(MachineObject *obj)
|
||||
}
|
||||
|
||||
// update calibration status
|
||||
if (calibration_dlg == nullptr) {
|
||||
calibration_dlg = new CalibrationDialog();
|
||||
calibration_dlg->update_machine_obj(obj);
|
||||
} else {
|
||||
if (calibration_dlg != nullptr) {
|
||||
calibration_dlg->update_machine_obj(obj);
|
||||
calibration_dlg->update_cali(obj);
|
||||
}
|
||||
calibration_dlg->update_cali(obj);
|
||||
|
||||
|
||||
|
||||
if (obj->is_support_first_layer_inspect
|
||||
@@ -3812,9 +3810,11 @@ void StatusPanel::on_start_calibration(wxCommandEvent &event)
|
||||
if (calibration_dlg == nullptr) {
|
||||
calibration_dlg = new CalibrationDialog();
|
||||
calibration_dlg->update_machine_obj(obj);
|
||||
calibration_dlg->update_cali(obj);
|
||||
calibration_dlg->ShowModal();
|
||||
} else {
|
||||
calibration_dlg->update_machine_obj(obj);
|
||||
calibration_dlg->update_cali(obj);
|
||||
calibration_dlg->ShowModal();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user