pcbnew: Restore select items filter

This restores the distinction between selecting tracks and selecting
items in the expand call.  It does not yet fully address lp:1832902
This commit is contained in:
Seth Hillbrand 2019-06-15 10:08:36 -07:00
parent 4f4b24a638
commit 77643fe9b6
1 changed files with 7 additions and 1 deletions

View File

@ -863,7 +863,13 @@ int SELECTION_TOOL::expandConnection( const TOOL_EVENT& aEvent )
// Track items marked BUSY have already been visited
// therefore their connections have already been marked
if( trackItem && !trackItem->GetState( BUSY ) )
{
if( aEvent.GetCommandId()
&& *aEvent.GetCommandId() == PCB_ACTIONS::expandSelectedConnection.GetId() )
selectAllItemsConnectedToItem( *trackItem );
else
selectAllItemsConnectedToTrack( *trackItem );
}
}
// Inform other potentially interested tools