mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-12 03:29:36 -07:00
FIX:Add pointer protection
jira: STUDIO-15102 Change-Id: I08c7039ba7c12e20cff1c28c7d588614d86ff9ff (cherry picked from commit 0e806a4a242c463accfe78cf165de0d1193fa1e6)
This commit is contained in:
parent
5d84c38b09
commit
3d294de33f
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue