7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Don't allow creation of design blocks in recently used tree node.

This commit is contained in:
Jeff Young 2025-01-31 13:26:40 +00:00
parent 2a1b93a254
commit 759bfbca99

View File

@ -305,6 +305,12 @@ LIB_ID LIB_TREE::GetSelectedLibId( int* aUnit ) const
if( !sel )
return LIB_ID();
if( m_adapter->GetTreeNodeFor( sel )->m_IsAlreadyPlacedGroup
|| m_adapter->GetTreeNodeFor( sel )->m_IsRecentlyUsedGroup )
{
return LIB_ID();
}
if( aUnit )
*aUnit = m_adapter->GetUnitFor( sel );