From: Stefan Csomor Date: Thu, 28 Jan 2010 13:48:35 +0000 (+0000) Subject: make sure modality is reflected correctly when rerouted from window-modal to app... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3039af96f6ebff4588f9ebf8a864d2c0e43d8697 make sure modality is reflected correctly when rerouted from window-modal to app-modal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/dialog.cpp b/src/osx/carbon/dialog.cpp index ad1c947965..8b198abb76 100644 --- a/src/osx/carbon/dialog.cpp +++ b/src/osx/carbon/dialog.cpp @@ -34,7 +34,10 @@ void wxDialog::DoShowWindowModal() // be the place to start: http://trac.wxwidgets.org/ticket/9459 // Unfortunately, supporting sheets in Carbon isn't as straightforward // as with Cocoa, so it will probably take some tweaking. - wxDialogBase::ShowWindowModal(); + + m_modality = wxDIALOG_MODALITY_APP_MODAL; + ShowModal(); + SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED ); } void wxDialog::DoShowModal()