diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 2f1cac5f56..345d01a2d8 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -480,7 +480,7 @@ void wxDialogBase::ShowWindowModal () void wxDialogBase::SendWindowModalDialogEvent ( wxEventType type ) { - wxCommandEvent event ( type, GetId()); + wxWindowModalDialogEvent event ( type, GetId()); event.SetEventObject(this); if ( !GetEventHandler()->ProcessEvent(event) )