]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Add wxBitmap(NSImage*) ctor to wxOSX.
[wxWidgets.git] / src / common / wincmn.cpp
index e0bd24bcc9964cc5bd66271e278356c865b0b7ec..ff653cb8309226b19215708bde9456183bde331a 100644 (file)
@@ -2026,7 +2026,10 @@ public:
                 return false;
             }
 
-            if ( recurse && !OnRecurse(child) )
+            // Notice that validation should never recurse into top level
+            // children, e.g. some other dialog which might happen to be
+            // currently shown.
+            if ( recurse && !child->IsTopLevel() && !OnRecurse(child) )
             {
                 return false;
             }