]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/frame.cpp
bug in wxSplitPath() corrected: the returned file name doesn't have the
[wxWidgets.git] / src / stubs / frame.cpp
index a961e3616f8e4a180f5f3a5546586744fb8c0c11..c0b6d6b932a25f7cd85e4c628f3ba4de886bee6e 100644 (file)
@@ -371,23 +371,11 @@ void wxFrame::OnActivate(wxActivateEvent& event)
   }
 }
 
-// The default implementation for the close window event - calls
-// OnClose for backward compatibility.
+// The default implementation for the close window event.
 
 void wxFrame::OnCloseWindow(wxCloseEvent& event)
 {
-    // Compatibility
-    if ( GetEventHandler()->OnClose() || !event.CanVeto())
-    {
-        this->Destroy();
-    }
-    else
-        event.Veto(TRUE);
-}
-
-bool wxFrame::OnClose()
-{
-    return TRUE;
+    this->Destroy();
 }
 
 // Destroy the window (delayed, if a managed window)