Calling SetFocus from within an OnFocus handler causes infinite recursion on Mac...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2006-10-28 00:37:17 +00:00
parent e7fbaf0efd
commit e718be3e16

View File

@ -1580,8 +1580,10 @@ void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
{
if ( event.GetEventType() == wxEVT_SET_FOCUS )
{
#ifndef __WXMAC__
if ( m_text && m_text != ::wxWindow::FindFocus() )
m_text->SetFocus();
#endif
}
Refresh();