X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16e93305f2bae16652b6750dffe3bcf05c20d839..1a9469d7cb70b9d6afa7e2c4ebb8b7b423513ccd:/src/qt/window.cpp diff --git a/src/qt/window.cpp b/src/qt/window.cpp index ed842eb30b..dce26c84da 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -1113,7 +1113,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); }