FIX:Add pointer protection

jira: STUDIO-15102
Change-Id: I08c7039ba7c12e20cff1c28c7d588614d86ff9ff
(cherry picked from commit 0e806a4a242c463accfe78cf165de0d1193fa1e6)
This commit is contained in:
zhou.xu 2025-10-16 16:55:45 +08:00 committed by Noisyfox
parent 5d84c38b09
commit 3d294de33f

View file

@ -16240,6 +16240,9 @@ void Plater::pop_warning_and_go_to_device_page(wxString printer_name, PrinterWar
bool Plater::is_same_printer_for_connected_and_selected(bool popup_warning)
{
if (!wxGetApp().getDeviceManager()) {
return false;
}
MachineObject *obj = wxGetApp().getDeviceManager()->get_selected_machine();
if (obj == nullptr) {
return false;