X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a579926062c74ef4e5ff2f1ddfbd60bbb43efed5..418b74a078f6502deff7ad4a4d562b9cc496774d:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 2d3bee6535..3c6e0b747e 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -509,6 +509,14 @@ bool wxWindowOS2::Enable( if ( hWnd ) ::WinEnableWindow(hWnd, (BOOL)bEnable); + // + // The logic below doesn't apply to the top level windows -- otherwise + // showing a modal dialog would result in total greying out (and ungreying + // out later) of everything which would be really ugly + // + if (IsTopLevel()) + return TRUE; + wxWindowList::Node* pNode = GetChildren().GetFirst(); while (pNode)