Removing manual focus handling
see https://github.com/wxWidgets/wxWidgets/pull/672 , commit 61b1a9a3533d4e16b2b7a9441e42766d8d9655c7 , revert this change if problems arise to see whether this is a recursion
This commit is contained in:
@@ -239,20 +239,6 @@ wxWindowMac::~wxWindowMac()
|
||||
|
||||
MacInvalidateBorders() ;
|
||||
|
||||
#ifndef __WXUNIVERSAL__
|
||||
// VS: make sure there's no wxFrame with last focus set to us:
|
||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||
{
|
||||
wxFrame *frame = wxDynamicCast(win, wxFrame);
|
||||
if ( frame )
|
||||
{
|
||||
if ( frame->GetLastFocus() == this )
|
||||
frame->SetLastFocus(NULL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// destroy children before destroying this window itself
|
||||
DestroyChildren();
|
||||
|
||||
@@ -266,15 +252,6 @@ wxWindowMac::~wxWindowMac()
|
||||
tlw->SetDefaultItem(NULL);
|
||||
}
|
||||
|
||||
#ifndef __WXUNIVERSAL__
|
||||
wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( (wxWindow*)this ) , wxFrame ) ;
|
||||
if ( frame )
|
||||
{
|
||||
if ( frame->GetLastFocus() == this )
|
||||
frame->SetLastFocus( NULL ) ;
|
||||
}
|
||||
#endif
|
||||
|
||||
// delete our drop target if we've got one
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
wxDELETE(m_dropTarget);
|
||||
|
Reference in New Issue
Block a user