]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Correction in comment in closing #endif. Is VC++ 4 supported?
[wxWidgets.git] / 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__