]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the correct event class for the window modal notification
authorRobin Dunn <robin@alldunn.com>
Mon, 1 Mar 2010 22:54:15 +0000 (22:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 1 Mar 2010 22:54:15 +0000 (22:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dlgcmn.cpp

index 2f1cac5f5605fe7804f5c619c9b42d703d440684..345d01a2d84d52d86854ee40729353520aef904c 100644 (file)
@@ -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) )