X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..97af5088ec19d287df10196dd36bd9f4ae78ea75:/src/mac/dialog.cpp?ds=inline diff --git a/src/mac/dialog.cpp b/src/mac/dialog.cpp index 760c07680a..044002d970 100644 --- a/src/mac/dialog.cpp +++ b/src/mac/dialog.cpp @@ -215,6 +215,7 @@ void wxDialog::DoShowModal() } // TODO : test whether parent gets disabled + bool formerModal = s_macIsInModalLoop ; s_macIsInModalLoop = true ; while ( IsModalShowing() ) @@ -225,7 +226,7 @@ void wxDialog::DoShowModal() wxTheApp->MacDoOneEvent() ; } - s_macIsInModalLoop = false ; + s_macIsInModalLoop = formerModal ; // TODO probably reenable the parent window if any