Always create project when doing a Save As on a board with a project

This commit is contained in:
Jon Evans 2021-01-26 21:58:17 -05:00
parent bea310569b
commit 1e030655cd
1 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,8 @@ bool AskSaveBoardFileName( PCB_EDIT_FRAME* aParent, wxString* aFileName, bool* a
if( wxWindow* extraControl = dlg.GetExtraControl() ) if( wxWindow* extraControl = dlg.GetExtraControl() )
*aCreateProject = static_cast<CREATE_PROJECT_CHECKBOX*>( extraControl )->GetValue(); *aCreateProject = static_cast<CREATE_PROJECT_CHECKBOX*>( extraControl )->GetValue();
else if( Kiface().IsSingle() && !aParent->Prj().IsNullProject() )
*aCreateProject = true;
return true; return true;
} }