]> git.saurik.com Git - wxWidgets.git/commitdiff
don't break of the loop resetting last focus pointer in dtor as under some (unclear...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Apr 2005 16:26:23 +0000 (16:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Apr 2005 16:26:23 +0000 (16:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index bea69a5f4c008ae4ab300a60484df85790b57358..76b0b095edcad8f4aec147100b9e20eec079d463 100644 (file)
@@ -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__