From 504826074994371ebf6f8274c3f49d39aec1e531 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 10 Jul 2018 20:58:33 +0100 Subject: [PATCH] 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) --- cvpcb/library_listbox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cvpcb/library_listbox.cpp b/cvpcb/library_listbox.cpp index c9d8e4fa9c..0113e606b8 100644 --- a/cvpcb/library_listbox.cpp +++ b/cvpcb/library_listbox.cpp @@ -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 ); }