Set sheet file name when Save as... succeeds

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6561
This commit is contained in:
Ola Rinta-Koski 2021-01-06 19:29:18 +00:00 committed by Seth Hillbrand
parent b08555b924
commit 87b2081807
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SHEET* aSheet, bool aSaveUnderNewName )
if( aSaveUnderNewName )
{
screen->SetFileName( schematicFileName.GetFullPath() );
aSheet->SetFileName( schematicFileName.GetFullPath() );
LockFile( schematicFileName.GetFullPath() );
}