net navigator: check for removal from net as well

This commit is contained in:
Mike Williams 2024-04-04 15:25:54 -04:00
parent e1548c0f9a
commit e83a82594e
2 changed files with 5 additions and 4 deletions

View File

@ -1739,7 +1739,8 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_COMMIT* aCommit, SCH_CLEANUP_FL
SCH_CONNECTION* connection = aChangedItem->Connection();
if( connection && ( connection->Name() == highlightedConn ) )
if( connection
&& ( connection->Name() == highlightedConn || connection->HasDriverChanged() ) )
m_highlightedConnChanged = true;
};

View File

@ -109,9 +109,9 @@ void SCH_EDIT_FRAME::SaveCopyInUndoList( SCH_SCREEN* aScreen, SCH_ITEM* aItem,
if( aDirtyConnectivity )
{
if( !aItem->IsConnectivityDirty()
&& aItem->Connection()
&& ( aItem->Connection()->Name() == m_highlightedConn ) )
if( !aItem->IsConnectivityDirty() && aItem->Connection()
&& ( aItem->Connection()->Name() == m_highlightedConn
|| aItem->Connection()->HasDriverChanged() ) )
{
m_highlightedConnChanged = true;
}