X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/818e52c20151ce0c22aa752ccbab94f1ae7afc99..25a2a4b05ee3b0f457ac89db2c93c0b11af5955a:/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)