X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e9f62dafb75dc5baa3800af456d1b0248d85357..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/src/univ/combobox.cpp diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index ec71609c58..dc644e1699 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -520,7 +520,10 @@ bool wxComboListBox::SetSelection(const wxString& value) void wxComboListBox::OnSelect(wxCommandEvent& event) { - // first let the user code have the event + // first update the combo and close the listbox + m_combo->OnSelect(event.GetString()); + + // next let the user code have the event // all fields are already filled by the listbox, just change the event // type and send it to the combo @@ -529,9 +532,6 @@ void wxComboListBox::OnSelect(wxCommandEvent& event) event2.SetEventObject(m_combo); event2.SetId(m_combo->GetId()); m_combo->ProcessEvent(event2); - - // next update the combo and close the listbox - m_combo->OnSelect(event.GetString()); } void wxComboListBox::OnShow()