X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..bc00e7155e50add264599856a39e0ceb2db19541:/src/mac/dialog.cpp 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