mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX:Add pointer protection
jira: STUDIO-15102 Change-Id: I08c7039ba7c12e20cff1c28c7d588614d86ff9ff (cherry picked from commit 0e806a4a242c463accfe78cf165de0d1193fa1e6)
This commit is contained in:
@@ -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)
|
bool Plater::is_same_printer_for_connected_and_selected(bool popup_warning)
|
||||||
{
|
{
|
||||||
|
if (!wxGetApp().getDeviceManager()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
MachineObject *obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
MachineObject *obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
||||||
if (obj == nullptr) {
|
if (obj == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user