From: Stefan Csomor Date: Mon, 7 Apr 2003 20:37:30 +0000 (+0000) Subject: explicit app modality in SetModal X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/643a0828dac932568e143b16b63a1cac0cd7d588 explicit app modality in SetModal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index 7b7bfc024b..cab8d1906c 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -78,6 +78,9 @@ void wxDialog::SetModal(bool flag) m_windowStyle |= wxDIALOG_MODAL; wxModelessWindows.DeleteObject(this); +#if TARGET_CARBON + SetWindowModality( (WindowRef) MacGetWindowRef() , kWindowModalityAppModal , NULL ) ; +#endif } else { diff --git a/src/mac/dialog.cpp b/src/mac/dialog.cpp index 7b7bfc024b..cab8d1906c 100644 --- a/src/mac/dialog.cpp +++ b/src/mac/dialog.cpp @@ -78,6 +78,9 @@ void wxDialog::SetModal(bool flag) m_windowStyle |= wxDIALOG_MODAL; wxModelessWindows.DeleteObject(this); +#if TARGET_CARBON + SetWindowModality( (WindowRef) MacGetWindowRef() , kWindowModalityAppModal , NULL ) ; +#endif } else {