PCB Editor: Inform tools when selecting/unselecting net

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13308
This commit is contained in:
Greg Davill 2022-12-29 13:46:20 +00:00 committed by Jon Evans
parent c722d59583
commit 3b55f9e326
1 changed files with 9 additions and 0 deletions

View File

@ -1554,6 +1554,13 @@ int PCB_SELECTION_TOOL::selectNet( const TOOL_EVENT& aEvent )
if( netcode > 0 )
{
SelectAllItemsOnNet( netcode, select );
// Inform other potentially interested tools
if( m_selection.Size() > 0 )
m_toolMgr->ProcessEvent( EVENTS::SelectedEvent );
else
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
return 0;
}
@ -1574,6 +1581,8 @@ int PCB_SELECTION_TOOL::selectNet( const TOOL_EVENT& aEvent )
// Inform other potentially interested tools
if( m_selection.Size() > 0 )
m_toolMgr->ProcessEvent( EVENTS::SelectedEvent );
else
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
return 0;
}