Fix of a crash on OSX after changing a layer range value and then

pressing the "add layer" button.
This commit is contained in:
Slic3rPE 2020-03-11 09:10:25 +01:00
parent 7b6c920a3d
commit e47e487fe2
5 changed files with 132 additions and 86 deletions

View file

@ -152,8 +152,9 @@ static void DeviceAdded(uint32_t unused)
static void DeviceRemoved(uint32_t unused)
{
BOOST_LOG_TRIVIAL(info) << "3dx device removed\n";
assert(m_connected);
assert(! m_device_str.empty());
// not accessible in a free function
// assert(m_connected);
// assert(! m_device_str.empty());
mouse_3d_controller->disconnected();
}