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
This commit is contained in:
Stefan Csomor
2010-01-28 13:48:35 +00:00
parent aedb388157
commit 3039af96f6

View 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()