From af05e5fc2ca33b5a5ac054356a83987977f4fbde Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 8 Apr 2019 11:06:15 +0200 Subject: [PATCH] Fixed crash under oSX after selection with SHIFT from 3DScene --- src/slic3r/GUI/GUI_ObjectList.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 80b7c3648f..37d30bbe2b 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -88,6 +88,10 @@ ObjectList::ObjectList(wxWindow* parent) : // before the kill focus event handler on the object manipulator when changing selection in the list, invalidating the object // manipulator cache with the following call to selection_changed() wxGetApp().obj_manipul()->emulate_kill_focus(); + + // To avoid selection update from SetSelection() and UnselectAll() under osx + if (m_prevent_list_events) + return; #endif // __APPLE__ /* For multiple selection with pressed SHIFT,