diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 4f03840d9e..d54fd64bb9 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -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;