Forward ported r58463. (Check for null text control in wxPickerBase fixing a focus event crash on control deletion on OSX 10.5 that will need to eventually be fixed, but this should be done anyway, and at least fixes wxFilePickerCtrl for now.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2009-01-27 17:42:42 +00:00
parent 1483e5db8d
commit bb4b11a219

View File

@@ -149,7 +149,7 @@ void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event)
event.Skip();
// don't leave the textctrl empty
if (m_text->GetValue().empty())
if (m_text && m_text->GetValue().empty())
UpdateTextCtrlFromPicker();
}