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,9 +60,11 @@ void CMP_TREE_MODEL_ADAPTER::AddLibrary( wxString const& aLibNickname )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AddAliasList( aLibNickname, aliases );
|
if( aliases.size() > 0 )
|
||||||
|
{
|
||||||
m_tree.AssignIntrinsicRanks();
|
AddAliasList( aLibNickname, aliases );
|
||||||
|
m_tree.AssignIntrinsicRanks();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,5 +93,6 @@ void CMP_TREE_MODEL_ADAPTER::AddAliasList(
|
||||||
alias_list.push_back( a );
|
alias_list.push_back( a );
|
||||||
}
|
}
|
||||||
|
|
||||||
AddAliasList( aNodeName, alias_list );
|
if( alias_list.size() > 0 )
|
||||||
|
AddAliasList( aNodeName, alias_list );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue