From 4552892fc214995d0e0a5f1e059915d2a89c023b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Apr 2005 16:26:23 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index bea69a5f4c..76b0b095ed 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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__ -- 2.45.2