]> git.saurik.com Git - wxWidgets.git/commitdiff
make sure modality is reflected correctly when rerouted from window-modal to app...
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 Jan 2010 13:48:35 +0000 (13:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 28 Jan 2010 13:48:35 +0000 (13:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/dialog.cpp

index ad1c94796507cad6d219deb651fd3a6b21cbc7b7..8b198abb76117715827708e9fae252a79f623316 100644 (file)
@@ -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()