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:
parent
2a1b93a254
commit
759bfbca99
@ -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…
Reference in New Issue
Block a user