Eeschema: Filter out empty libraries
Fixes: lp:1736930 * https://bugs.launchpad.net/kicad/+bug/1736930
This commit is contained in:
parent
394749f1d6
commit
cb422e29df
|
@ -60,10 +60,12 @@ void CMP_TREE_MODEL_ADAPTER::AddLibrary( wxString const& aLibNickname )
|
|||
return;
|
||||
}
|
||||
|
||||
if( aliases.size() > 0 )
|
||||
{
|
||||
AddAliasList( aLibNickname, aliases );
|
||||
|
||||
m_tree.AssignIntrinsicRanks();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CMP_TREE_MODEL_ADAPTER::AddAliasList(
|
||||
|
@ -91,5 +93,6 @@ void CMP_TREE_MODEL_ADAPTER::AddAliasList(
|
|||
alias_list.push_back( a );
|
||||
}
|
||||
|
||||
if( alias_list.size() > 0 )
|
||||
AddAliasList( aNodeName, alias_list );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue