mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 18:25:31 +00:00
Eeschema: sort parents in symbol properties dialog combobox
This commit is contained in:
parent
d55877ce27
commit
62095306d0
@ -265,6 +265,13 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow()
|
||||
|
||||
m_Parent->GetLibManager().GetSymbolNames( libName, symbolNames );
|
||||
|
||||
// Sort the list of symbols for easier search
|
||||
symbolNames.Sort(
|
||||
[]( const wxString& a, const wxString& b ) -> int
|
||||
{
|
||||
return StrNumCmp( a, b, true );
|
||||
} );
|
||||
|
||||
// Do allow an inherited symbol to be derived from itself.
|
||||
symbolNames.Remove( m_libEntry->GetName() );
|
||||
m_inheritanceSelectCombo->Append( symbolNames );
|
||||
|
Loading…
Reference in New Issue
Block a user