eeschema: Clean up backup name
This fixes the last suffix that was missed by168fa09f5
. The schematic backup files should have the suffix .sch-bak to distinguish from .kicad_pcb-bak or other backups. (cherry picked from commitb6fe4ff637
)
This commit is contained in:
parent
d208447cba
commit
7759ad7e27
|
@ -91,7 +91,6 @@ wxString AddFileExtListToFilter( const std::vector<std::string>& aExts )
|
|||
|
||||
const std::string SchematicSymbolFileExtension( "sym" );
|
||||
const std::string SchematicLibraryFileExtension( "lib" );
|
||||
const std::string SchematicBackupFileExtension( "bak" );
|
||||
|
||||
const std::string VrmlFileExtension( "wrl" );
|
||||
|
||||
|
|
|
@ -92,8 +92,8 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SCREEN* aScreen, bool aSaveUnderNewName,
|
|||
{
|
||||
wxFileName backupFileName = schematicFileName;
|
||||
|
||||
// Rename the old file to a '.bak' one:
|
||||
backupFileName.SetExt( SchematicBackupFileExtension );
|
||||
// Rename the old file to a '-bak' suffixed one:
|
||||
backupFileName.SetExt( schematicFileName.GetExt() + GetBackupSuffix() );
|
||||
|
||||
if( backupFileName.FileExists() )
|
||||
wxRemoveFile( backupFileName.GetFullPath() );
|
||||
|
|
Loading…
Reference in New Issue