FIX:fixed the crash when sent print when no printer available

Change-Id: I2974ff7c3f7e753239718f9bfd8b4977672dc651
(cherry picked from commit 9f3c98dcfb8801fe70e9dd02f0f931be6c5556be)
This commit is contained in:
tao wang 2024-10-16 14:48:20 +08:00 committed by Noisyfox
parent 679a4a7fa3
commit 1b11416cb8

View file

@ -2830,7 +2830,7 @@ void SelectMachineDialog::update_ams_check(MachineObject *obj)
}
}
if (obj->is_enable_np) { m_checkbox_list["use_ams"]->SetValue(true); }
if (obj && obj->is_enable_np) { m_checkbox_list["use_ams"]->SetValue(true); }
}
void SelectMachineDialog::update_show_status()