From 08d56f897c21c8d9ee8369f0a8a4b9da1127ec07 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 13 Jun 2021 17:15:02 +0100 Subject: [PATCH] Update Hierarchy Navigator after performing file actions. Fixes https://gitlab.com/kicad/code/kicad/issues/8498 --- eeschema/files-io.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 39374f6841..87fb7ad345 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -24,14 +24,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include #include #include #include #include #include #include -#include #include #include #include @@ -60,7 +58,6 @@ #include #include #include -#include #include #include #include // For ::ResolvePossibleSymlinks @@ -619,6 +616,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in SyncView(); GetScreen()->ClearDrawingState(); + UpdateHierarchyNavigator(); UpdateTitle(); wxFileName fn = Prj().AbsolutePath( GetScreen()->GetFileName() ); @@ -670,6 +668,8 @@ bool SCH_EDIT_FRAME::AppendSchematic() OnModify(); HardRedraw(); // Full reinit of the current screen and the display. + UpdateHierarchyNavigator(); + return true; } @@ -1166,6 +1166,8 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType ) initScreenZoom(); SetSheetNumberAndCount(); SyncView(); + + UpdateHierarchyNavigator(); UpdateTitle(); } catch( const IO_ERROR& ioe )