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

Fixes https://gitlab.com/kicad/code/kicad/issues/12503
This commit is contained in:
Jeff Young 2022-11-05 12:11:58 +00:00
parent 25f06eed8c
commit 5366fa8cee
1 changed files with 4 additions and 1 deletions

View File

@ -467,6 +467,9 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje
if( destFile.GetName() == aProjectName + "-cache" )
destFile.SetName( aNewProjectName + "-cache" );
if( destFile.GetName() == aProjectName + "-rescue" )
destFile.SetName( aNewProjectName + "-rescue" );
KiCopyFile( aSrcFilePath, destFile.GetFullPath(), aErrors );
}
else if( ext == NetlistFileExtension )