From 554cb54a4fae83052796cb66383fe79fd05617fe Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 20 Apr 2018 10:03:21 +0200 Subject: [PATCH] Eagle SCH import: save project file after the full path is set Fixes: lp:1765297 * https://bugs.launchpad.net/kicad/+bug/1765297 --- eeschema/files-io.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;