X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d67540a017101b3e46abe9ef0f55914d8de37e..25a2a4b05ee3b0f457ac89db2c93c0b11af5955a:/src/qt/frame.cpp?ds=inline diff --git a/src/qt/frame.cpp b/src/qt/frame.cpp index 56f72c6dfe..f371fe0724 100644 --- a/src/qt/frame.cpp +++ b/src/qt/frame.cpp @@ -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)