fix for crash under wxX11: we get text event there when m_popup is still NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c245a01202
commit
b0fb790beb
@ -458,7 +458,7 @@ void wxDatePickerCtrlGeneric::OnText(wxCommandEvent &ev)
|
||||
// We'll create an additional event if the date is valid.
|
||||
// If the date isn't valid, the user's probably in the middle of typing
|
||||
wxDateTime dt;
|
||||
if ( !m_popup->ParseDateTime(m_combo->GetValue(), &dt) )
|
||||
if ( !m_popup || !m_popup->ParseDateTime(m_combo->GetValue(), &dt) )
|
||||
return;
|
||||
|
||||
m_popup->SendDateEvent(dt);
|
||||
|
Loading…
Reference in New Issue
Block a user