From 64afa3a42e4765fe253c7bc273cd8d5ab7109df8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 12 May 2021 09:45:23 +0200 Subject: [PATCH] EEschema, minor fix: avoid modifying frame title after an autosave. Fixes #8411 https://gitlab.com/kicad/code/kicad/issues/8411 --- eeschema/files-io.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index a50fe07604..33c59a6df3 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -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; }