Eagle SCH import: save project file after the full path is set
Fixes: lp:1765297 * https://bugs.launchpad.net/kicad/+bug/1765297
This commit is contained in:
parent
536529e48f
commit
554cb54a4f
|
@ -799,9 +799,6 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
|||
layoutfile.Close();
|
||||
}
|
||||
|
||||
SaveProjectSettings( false );
|
||||
|
||||
|
||||
projectpath = Kiway().Prj().GetProjectPath();
|
||||
newfilename.SetPath( Prj().GetProjectPath() );
|
||||
newfilename.SetName( Prj().GetProjectName() );
|
||||
|
@ -814,6 +811,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
|||
g_RootSheet->SetFileName( newfilename.GetFullPath() );
|
||||
GetScreen()->SetFileName( newfilename.GetFullPath() );
|
||||
GetScreen()->SetModify();
|
||||
SaveProjectSettings( false );
|
||||
|
||||
UpdateFileHistory( fullFileName );
|
||||
SCH_SCREENS schematic;
|
||||
|
|
Loading…
Reference in New Issue