Browse Source

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

Jeff Young 11 months ago
parent
commit
759bfbca99
  1. 6
      common/widgets/lib_tree.cpp

6
common/widgets/lib_tree.cpp

@ -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 );

Loading…
Cancel
Save