Set sheet file name when Save as... succeeds
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6561
This commit is contained in:
parent
b08555b924
commit
87b2081807
|
@ -177,6 +177,7 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SHEET* aSheet, bool aSaveUnderNewName )
|
||||||
if( aSaveUnderNewName )
|
if( aSaveUnderNewName )
|
||||||
{
|
{
|
||||||
screen->SetFileName( schematicFileName.GetFullPath() );
|
screen->SetFileName( schematicFileName.GetFullPath() );
|
||||||
|
aSheet->SetFileName( schematicFileName.GetFullPath() );
|
||||||
LockFile( schematicFileName.GetFullPath() );
|
LockFile( schematicFileName.GetFullPath() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue