]> git.saurik.com Git - wxWidgets.git/blobdiff - src/qt/frame.cpp
added TODO list for cross compilation
[wxWidgets.git] / src / qt / frame.cpp
index 56f72c6dfe61f81d6be24dc0b0e3683b7f951bf8..f371fe0724b69302927fed3d3c74979f03aa4b35 100644 (file)
@@ -367,21 +367,10 @@ 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.GetForce())
-    {
-        this->Destroy();
-    }
-}
-
-bool wxFrame::OnClose()
-{
-    return TRUE;
+    this->Destroy();
 }
 
 // Destroy the window (delayed, if a managed window)