EEschema, minor fix: avoid modifying frame title after an autosave.

Fixes #8411
https://gitlab.com/kicad/code/kicad/issues/8411
This commit is contained in:
jean-pierre charras 2021-05-12 09:45:23 +02:00
parent 6f9dbd3548
commit 64afa3a42e
1 changed files with 4 additions and 0 deletions

View File

@ -931,6 +931,8 @@ bool SCH_EDIT_FRAME::doAutoSave()
if( !IsWritable( tmp ) )
return false;
wxString title = GetTitle(); // Save frame title, that can be modified by the save process
for( size_t i = 0; i < screens.GetCount(); i++ )
{
// Only create auto save files for the schematics that have been modified.
@ -963,6 +965,8 @@ bool SCH_EDIT_FRAME::doAutoSave()
}
}
SetTitle( title );
return autoSaveOk;
}