eeschema: Handle Windows click ordering

Click to add/edit footprint filters under MSW requires handling the
listbox double click first before the item is handled.

Fixes: lp:1816182
* https://bugs.launchpad.net/kicad/+bug/1816182
This commit is contained in:
Seth Hillbrand 2019-02-19 17:50:17 -08:00
parent 9ff0868813
commit b4c0af021e
1 changed files with 6 additions and 2 deletions

View File

@ -729,9 +729,13 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnDeleteAlias( wxCommandEvent& event )
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnFilterDClick( wxMouseEvent& event) void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnFilterDClick( wxMouseEvent& event)
{ {
int idx = m_FootprintFilterListBox->HitTest( event.GetPosition() );
wxCommandEvent dummy; wxCommandEvent dummy;
if( idx >= 0 )
OnEditFootprintFilter( dummy );
else
OnAddFootprintFilter( dummy ); OnAddFootprintFilter( dummy );
event.Skip();
} }