Only set modified if it's an old file.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16113
This commit is contained in:
Jeff Young 2023-11-19 23:33:10 +00:00
parent 734e0ca006
commit e73048bf98
1 changed files with 5 additions and 2 deletions

View File

@ -491,8 +491,11 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
for( SCH_SCREEN* screen = schematic.GetFirst(); screen; screen = schematic.GetNext() )
screen->MigrateSimModels();
// Allow the schematic to be saved to new file format without making any edits.
OnModify();
if( schematic.GetFirst()->GetFileFormatVersionAtLoad() < SEXPR_SCHEMATIC_FILE_VERSION )
{
// Allow the schematic to be saved to new file format without making any edits.
OnModify();
}
}
Schematic().ConnectionGraph()->Reset();