From 5f492309e8f271f8a8d4d87af90c605012c84d27 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Jul 2008 23:57:23 +0000 Subject: [PATCH] fix focus problems in picker controls under MSW which were due to not letting the system process kill focus for the text part of the control (#9687) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/pickerbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 53ec72d19e..0176c2a2a8 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -144,9 +144,9 @@ 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())