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:
Maciej Suminski 2018-04-20 10:03:21 +02:00
parent 536529e48f
commit 554cb54a4f
1 changed files with 1 additions and 3 deletions

View File

@ -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;