From a21df32225fede280063b3ef6a40d02ec50a023d Mon Sep 17 00:00:00 2001 From: tao wang Date: Tue, 4 Jul 2023 09:41:36 +0800 Subject: [PATCH] FIX:calibration&fixed sidetool not selectable Change-Id: I51099e3bc89bb54ccac4ba9d2465bfabe77ae473 --- src/slic3r/GUI/Monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Monitor.cpp b/src/slic3r/GUI/Monitor.cpp index fade6c142..2e9fc9ed3 100644 --- a/src/slic3r/GUI/Monitor.cpp +++ b/src/slic3r/GUI/Monitor.cpp @@ -112,7 +112,7 @@ AddMachinePanel::~AddMachinePanel() { init_timer(); - m_side_tools->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this); + m_side_tools->get_panel()->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this); Bind(wxEVT_TIMER, &MonitorPanel::on_timer, this); Bind(wxEVT_SIZE, &MonitorPanel::on_size, this); @@ -125,7 +125,7 @@ AddMachinePanel::~AddMachinePanel() { MonitorPanel::~MonitorPanel() { - m_side_tools->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this); + m_side_tools->get_panel()->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this); if (m_refresh_timer) m_refresh_timer->Stop();