From e73048bf98db857361e5ee1bbb8a4d273f10550a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 19 Nov 2023 23:33:10 +0000 Subject: [PATCH] Only set modified if it's an old file. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16113 --- eeschema/files-io.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index c575363b57..ae36434aa3 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -491,8 +491,11 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& 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();