X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/818e52c20151ce0c22aa752ccbab94f1ae7afc99..1e3698e55d7ee45267b69fa8ed5f94886ad47be9:/src/qt/frame.cpp diff --git a/src/qt/frame.cpp b/src/qt/frame.cpp index cd830e4f10..f371fe0724 100644 --- a/src/qt/frame.cpp +++ b/src/qt/frame.cpp @@ -367,23 +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.CanVeto()) - { - this->Destroy(); - } - else - event.Veto(TRUE); -} - -bool wxFrame::OnClose() -{ - return TRUE; + this->Destroy(); } // Destroy the window (delayed, if a managed window)