X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ccbb61aba5a0bbd93ba036ba8e1194e349064f6..b98d804b283dc391ef112f734393696eea0a4ee4:/src/motif/frame.cpp?ds=inline diff --git a/src/motif/frame.cpp b/src/motif/frame.cpp index 4ea8a6716e..024c031119 100644 --- a/src/motif/frame.cpp +++ b/src/motif/frame.cpp @@ -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)