]> git.saurik.com Git - wxWidgets.git/blobdiff - src/qt/window.cpp
Added #include wx/dcclient.h and wx/settings.h for Vadims new code under
[wxWidgets.git] / src / qt / window.cpp
index ed842eb30b744dd15abd56b201472b5671c9f2ba..dce26c84da3b919aef81d4d1b84bb874d4ff2a0a 100644 (file)
@@ -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);
 }