Prevent crash during schematic window close
This commit is contained in:
parent
3077bbf1bb
commit
2025923ef4
|
@ -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…
Reference in New Issue