Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-09-11 09:30:51 +00:00
parent a44c4abe5e
commit 126bb30567

View File

@@ -1729,13 +1729,9 @@ void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
{
wxWindow* tc = GetTextCtrl();
if ( tc && tc != DoFindFocus() )
#ifdef __WXMAC__
m_resetFocus = true;
#else
{
tc->SetFocus();
}
#endif
}
Refresh();