Don't proceed with opening project if players didn't close

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7974
This commit is contained in:
Jon Evans 2021-03-20 09:06:27 -04:00
parent 6d5536707c
commit 298dda8fcd
1 changed files with 2 additions and 1 deletions

View File

@ -422,7 +422,8 @@ void KICAD_MANAGER_FRAME::LoadProject( const wxFileName& aProjectFileName )
// Any open KIFACE's must be closed if they are not part of the new project.
// (We never want a KIWAY_PLAYER open on a KIWAY that isn't in the same project.)
// User is prompted here to close those KIWAY_PLAYERs:
CloseProject( true );
if( !CloseProject( true ) )
return;
m_active_project = true;