]> git.saurik.com Git - wxWidgets.git/commitdiff
Calling SetFocus from within an OnFocus handler causes infinite recursion on Mac...
authorKevin Ollivier <kevino@theolliviers.com>
Sat, 28 Oct 2006 00:37:17 +0000 (00:37 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sat, 28 Oct 2006 00:37:17 +0000 (00:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp

index e0695444048dec1ba7fe9bf63dac6ebc1309c516..7e53044b3e0c46116a80f336c0c35f21b0711570 100644 (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();