don't access the window after it had been deleted by the focus event handler (patch 1693063) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -334,6 +334,9 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( thisWindow->MacIsUserPane() )
|
||||
result = noErr ;
|
||||
|
||||
if ( controlPart == kControlFocusNoPart )
|
||||
{
|
||||
#if wxUSE_CARET
|
||||
@@ -367,9 +370,6 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
||||
event.SetEventObject(thisWindow);
|
||||
thisWindow->GetEventHandler()->ProcessEvent(event) ;
|
||||
}
|
||||
|
||||
if ( thisWindow->MacIsUserPane() )
|
||||
result = noErr ;
|
||||
}
|
||||
break ;
|
||||
|
||||
|
Reference in New Issue
Block a user