PCB Editor: Inform tools when selecting/unselecting net
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13308
This commit is contained in:
parent
c722d59583
commit
3b55f9e326
|
@ -1554,6 +1554,13 @@ int PCB_SELECTION_TOOL::selectNet( const TOOL_EVENT& aEvent )
|
||||||
if( netcode > 0 )
|
if( netcode > 0 )
|
||||||
{
|
{
|
||||||
SelectAllItemsOnNet( netcode, select );
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1574,6 +1581,8 @@ int PCB_SELECTION_TOOL::selectNet( const TOOL_EVENT& aEvent )
|
||||||
// Inform other potentially interested tools
|
// Inform other potentially interested tools
|
||||||
if( m_selection.Size() > 0 )
|
if( m_selection.Size() > 0 )
|
||||||
m_toolMgr->ProcessEvent( EVENTS::SelectedEvent );
|
m_toolMgr->ProcessEvent( EVENTS::SelectedEvent );
|
||||||
|
else
|
||||||
|
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue