From b074cdf185733dda7d145b1c67ecc4b24687f2c4 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 19 May 2020 23:32:49 -0400 Subject: [PATCH] Ensure that eeschema loads project params in standalone mode --- eeschema/files-io.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 9a17c98f3e..59bff0fe93 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -302,6 +302,10 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in Prj().SetElem( PROJECT::ELEM_SCH_PART_LIBS, NULL ); } + // Make sure the project file name is set (it won't be in standalone mode) + if( pro.GetFullPath() != Prj().GetProjectFullName() ) + Prj().SetProjectFullName( pro.GetFullPath() ); + LoadProjectFile(); // Load the symbol library table, this will be used forever more.