- DoShowModal();
- }
- else // end of modal dialog
- {
- // this will cause IsModalShowing() return false and our local
- // message loop will terminate
- wxModalDialogs.DeleteObject(this);
+ case wxDIALOG_MODALITY_WINDOW_MODAL:
+ EndWindowModal(); // OS X implementation method for cleanup
+ SendWindowModalDialogEvent ( wxEVT_WINDOW_MODAL_DIALOG_CLOSED );
+ break;
+ default:
+ break;