Browse Source

Don't reset focus flag yet on non-GTK platforms. It's required.

Fixes https://gitlab.com/kicad/code/kicad/issues/7671
6.0.7
Jeff Young 5 years ago
parent
commit
b48071015b
  1. 3
      pcbnew/grid_layer_box_helpers.cpp

3
pcbnew/grid_layer_box_helpers.cpp

@ -201,11 +201,14 @@ void GRID_CELL_LAYER_SELECTOR::Reset()
void GRID_CELL_LAYER_SELECTOR::onComboDropDown( wxCommandEvent& aEvent )
{
// On other platforms this is done in BeginEdit()
#if defined(__WXGTK20__)
auto evtHandler = static_cast<wxGridCellEditorEvtHandler*>( m_control->GetEventHandler() );
// Once the combobox is dropped, reset the flag to allow the focus-loss handler
// to function and close the editor.
evtHandler->SetInSetFocus( false );
#endif
}

Loading…
Cancel
Save