Add mapping for -rescue.lib in project Save As.

Fixes https://gitlab.com/kicad/code/kicad/issues/12503

(cherry picked from commit 5366fa8cee)
This commit is contained in:
Jeff Young 2022-11-05 12:11:58 +00:00
parent 2f47857abc
commit 27676f4388
1 changed files with 4 additions and 1 deletions

View File

@ -356,7 +356,10 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje
ext == KiCadSymbolLibFileExtension )
{
if( destFile.GetName() == aProjectName + wxT( "-cache" ) )
destFile.SetName( aNewProjectName + wxT( "-cache" ) );
destFile.SetName( aNewProjectName + wxT( "-cache" ) );
if( destFile.GetName() == aProjectName + wxT( "-rescue" ) )
destFile.SetName( aNewProjectName + wxT( "-rescue" ) );
KiCopyFile( aSrcFilePath, destFile.GetFullPath(), aErrors );
}