X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5abc0d2197b49d0ede5aac71c08c2fd693e56498..72625b36b6fdaea839a5132e8f5d52dea7155bec:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index e0bd24bcc9..ff653cb830 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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; }