Browse Source

Prevent crash during schematic window close

newinvert
Marek Roszko 3 years ago
parent
commit
2025923ef4
  1. 2
      eeschema/sch_edit_frame.cpp

2
eeschema/sch_edit_frame.cpp

@ -868,6 +868,8 @@ void SCH_EDIT_FRAME::doCloseWindow()
if( m_toolManager )
{
m_toolManager->ShutdownAllTools();
// prevent the canvas from trying to dispatch events during close
GetCanvas()->SetEventDispatcher( nullptr );
delete m_toolManager;
m_toolManager = nullptr;
}

Loading…
Cancel
Save