From 0cfd8657bbdd58f557792df7ddce28b59706933b Mon Sep 17 00:00:00 2001 From: QIDI TECH <893239786@qq.com> Date: Mon, 16 Dec 2024 10:35:05 +0800 Subject: [PATCH] Update Plater.cpp --- src/slic3r/GUI/Plater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ef7a0b8..f7ceecb 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3714,7 +3714,9 @@ void Plater::priv::show_action_buttons(const bool ready_to_slice_) const const bool connect_gcode_shown = print_host_opt == nullptr && can_show_upload_to_connect(); //y18 - const bool local_has_devices = main_frame->m_printer_view->Local_has_device(); + const bool local_has_devices = false; + if(main_frame->m_printer_view) + const bool local_has_devices = main_frame->m_printer_view->Local_has_device(); //y #if QDT_RELEASE_TO_PUBLIC