]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
fixing bug 1841377
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 5a1129b0e2215de42fbcaf0d8632c8e00b7ac6a7..f791d2d08707994268c94798f1987c38f1415d25 100644 (file)
@@ -141,7 +141,7 @@ void wxDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 
     wxCommandEvent cancelEvent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
     cancelEvent.SetEventObject( this );
-    GetEventHandler()->ProcessEvent(cancelEvent);
+    HandleWindowEvent(cancelEvent);
     s_closing.DeleteObject(this);
 }