X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16e93305f2bae16652b6750dffe3bcf05c20d839..8a3f08bc6f9d7d7ece178d98fe01ac3ef45e1509:/src/qt/window.cpp diff --git a/src/qt/window.cpp b/src/qt/window.cpp index ed842eb30b..761e34e9d0 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -38,7 +38,6 @@ extern wxList wxPendingDelete; -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler) BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler) @@ -49,7 +48,6 @@ BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler) EVT_IDLE(wxWindow::OnIdle) END_EVENT_TABLE() -#endif // Constructor @@ -1113,7 +1111,10 @@ bool wxWindow::Close(bool force) { wxCloseEvent event(wxEVT_CLOSE_WINDOW, m_windowId); event.SetEventObject(this); +#if WXWIN_COMPATIBILITY event.SetForce(force); +#endif + event.SetCanVeto(!force); return GetEventHandler()->ProcessEvent(event); }