Sort root symbols by name in new symbol dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/5910
This commit is contained in:
Ian McInerney 2020-11-03 23:02:38 +00:00
parent 88abcc1287
commit 123fe5a887
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ void SYMBOL_EDIT_FRAME::CreateNewPart()
m_libMgr->GetRootSymbolNames( lib, rootSymbols ); m_libMgr->GetRootSymbolNames( lib, rootSymbols );
rootSymbols.Sort();
DIALOG_LIB_NEW_COMPONENT dlg( this, &rootSymbols ); DIALOG_LIB_NEW_COMPONENT dlg( this, &rootSymbols );
dlg.SetMinSize( dlg.GetSize() ); dlg.SetMinSize( dlg.GetSize() );