Turn on library filter when library is selected.

It's a pretty good clue that the user wants to filter the footprints
by library (as it has no other purpose).

Fixes: lp:1780487
* https://bugs.launchpad.net/kicad/+bug/1780487

(cherry picked from commit b9a56f1)
This commit is contained in:
Jeff Young 2018-07-10 20:58:33 +01:00
parent 99db5cb543
commit 5048260749
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ void LIBRARY_LISTBOX::OnChar( wxKeyEvent& event )
void LIBRARY_LISTBOX::OnSelectLibrary( wxListEvent& event )
{
wxCommandEvent setLibraryFilterEvent;
setLibraryFilterEvent.SetId( ID_CVPCB_FOOTPRINT_DISPLAY_BY_LIBRARY_LIST );
setLibraryFilterEvent.SetInt( 1 );
GetParent()->OnSelectFilteringFootprint( setLibraryFilterEvent );
SetFocus();
GetParent()->OnSelectComponent( event );
}