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:
parent
e7fbaf0efd
commit
e718be3e16
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user