Fix crash when changing sheet file name and search panel is visible.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19232
This commit is contained in:
Wayne Stambaugh
2024-12-01 13:09:59 -05:00
parent ae6171a988
commit 302dfb4623
+5
View File
@@ -2122,6 +2122,11 @@ int SCH_EDIT_TOOL::Properties( const TOOL_EVENT& aEvent )
}
else
{
std::vector<SCH_ITEM*> items;
items.emplace_back( sheet );
m_frame->Schematic().OnItemsRemoved( items );
m_frame->Schematic().OnItemsAdded( items );
m_frame->Schematic().RefreshHierarchy();
m_frame->UpdateHierarchyNavigator();
}