Stope event propagation when closing project.
Fixes https://gitlab.com/kicad/code/kicad/issues/8638
This commit is contained in:
parent
9d587e3e6e
commit
47cb7f53fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue