Stope event propagation when closing project.

Fixes https://gitlab.com/kicad/code/kicad/issues/8638
This commit is contained in:
Jeff Young 2021-11-15 00:02:25 +00:00
parent 9d587e3e6e
commit 47cb7f53fd
1 changed files with 3 additions and 0 deletions

View File

@ -360,6 +360,9 @@ bool KICAD_MANAGER_FRAME::canCloseWindow( wxCloseEvent& aEvent )
// If any of them cancel then we need to cancel closing the KICAD_MANAGER_FRAME.
if( CloseProject( true ) )
{
// Don't propagate event to frames which have already been closed
aEvent.StopPropagation();
return true;
}
else