avoid infinite recursion for richtooltops, (hopefully) fixes #15070

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2013-03-07 21:41:39 +00:00
parent a5777be7b0
commit b09857ae00

View File

@ -812,7 +812,7 @@ void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEve
- (BOOL) canBecomeKeyView
{
wxWidgetCocoaImpl* viewimpl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if ( viewimpl && viewimpl->GetWXPeer() )
if ( viewimpl && viewimpl->IsUserPane() && viewimpl->GetWXPeer() )
return viewimpl->GetWXPeer()->AcceptsFocus();
return NO;
}