make sure we don't keep a focus pointer to a window that gets deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ef08713a5b
commit
fd76aa8d8a
@ -169,6 +169,13 @@ wxWindowMac::~wxWindowMac()
|
||||
{
|
||||
s_lastMouseWindow = NULL ;
|
||||
}
|
||||
|
||||
wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( this ) , wxFrame ) ;
|
||||
if ( frame )
|
||||
{
|
||||
if ( frame->GetLastFocus() == this )
|
||||
frame->SetLastFocus( NULL ) ;
|
||||
}
|
||||
|
||||
if ( gFocusWindow == this )
|
||||
{
|
||||
|
@ -169,6 +169,13 @@ wxWindowMac::~wxWindowMac()
|
||||
{
|
||||
s_lastMouseWindow = NULL ;
|
||||
}
|
||||
|
||||
wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( this ) , wxFrame ) ;
|
||||
if ( frame )
|
||||
{
|
||||
if ( frame->GetLastFocus() == this )
|
||||
frame->SetLastFocus( NULL ) ;
|
||||
}
|
||||
|
||||
if ( gFocusWindow == this )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user