wxWindow::FindFocus() may return NULL, don't crash by attempting to
dereference the pointer returned by it.
Closes #15146.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73809
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxWindow* popup = m_combo->GetPopupControl()->GetControl();
wxWindow* winpopup = m_combo->GetPopupWindow();
- if (
+ if ( !winFocused || (
winFocused != m_focusStart &&
winFocused != popup &&
winFocused->GetParent() != popup &&
winFocused != m_combo &&
winFocused != m_combo->GetButton() // GTK (atleast) requires this
)
+ )
{
m_combo->HidePopup(true);
}