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:
parent
d1bdfb7253
commit
6a3384e764
|
@ -599,6 +599,11 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
|
|
||||||
if( is_new )
|
if( is_new )
|
||||||
{
|
{
|
||||||
|
// Link the existing blank board to the new project
|
||||||
|
GetBoard()->SetProject( &Prj() );
|
||||||
|
|
||||||
|
GetBoard()->SetFileName( fullFileName );
|
||||||
|
|
||||||
OnModify();
|
OnModify();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue