]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/frame.cpp
wxSplitPath() bugs corrected and it's documented
[wxWidgets.git] / src / motif / frame.cpp
index 4ea8a6716e32eb250fdaaa1afbd53ade5ec60449..024c031119bdd08bcb27c906cdf73f9bf718683b 100644 (file)
@@ -782,21 +782,12 @@ void wxFrame::OnActivate(wxActivateEvent& event)
     }
 }
 
-// The default implementation for the close window event - calls
+// The default implementation for the close window event.
 // OnClose for backward compatibility.
 
 void wxFrame::OnCloseWindow(wxCloseEvent& event)
 {
-    // Compatibility
-    if ( GetEventHandler()->OnClose() || event.GetForce())
-    {
-        this->Destroy();
-    }
-}
-
-bool wxFrame::OnClose()
-{
-    return TRUE;
+    this->Destroy();
 }
 
 // Destroy the window (delayed, if a managed window)