Properly set up new boards when creating from the command line

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5913
This commit is contained in:
Jon Evans 2020-10-13 19:16:36 -04:00
parent d1bdfb7253
commit 6a3384e764
1 changed files with 5 additions and 0 deletions

View File

@ -599,6 +599,11 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
if( is_new )
{
// Link the existing blank board to the new project
GetBoard()->SetProject( &Prj() );
GetBoard()->SetFileName( fullFileName );
OnModify();
}
else