X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e70abc2dd7d3c40677f1c94eb3b499f09129934c..b53aea81d2e102224b452ef5bf7aee1132f37c6f:/src/common/pickerbase.cpp diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 53ec72d19e..cccaabc42e 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -144,12 +144,12 @@ void wxPickerBase::DoSetToolTip(wxToolTip *tip) // wxPickerBase - event handlers // ---------------------------------------------------------------------------- -void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent &) +void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event) { - wxASSERT(m_text); + event.Skip(); // don't leave the textctrl empty - if (m_text->GetValue().empty()) + if (m_text && m_text->GetValue().empty()) UpdateTextCtrlFromPicker(); }