don't break of the loop resetting last focus pointer in dtor as under some (unclear) cisrcumstances more than one TLW can have a pointer to us, see bug 1179024
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
286ff306d8
commit
4552892fc2
@ -482,7 +482,12 @@ wxWindowMSW::~wxWindowMSW()
|
||||
{
|
||||
frame->SetLastFocus(NULL);
|
||||
}
|
||||
break;
|
||||
|
||||
// apparently sometimes we can end up with our grand parent
|
||||
// pointing to us as well: this is surely a bug in focus handling
|
||||
// code but it's not clear where it happens so for now just try to
|
||||
// fix it here by not breaking out of the loop
|
||||
//break;
|
||||
}
|
||||
}
|
||||
#endif // __WXUNIVERSAL__
|
||||
|
Loading…
Reference in New Issue
Block a user