diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index dd2e272a75..759671ac12 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -409,7 +409,9 @@ void wxWindowCocoa::Cocoa_FrameChanged(void) bool wxWindow::Close(bool force) { - return false; + // The only reason this function exists is that it is virtual and + // wxTopLevelWindowCocoa will override it. + return wxWindowBase::Close(force); } void wxWindow::CocoaReplaceView(WX_NSView oldView, WX_NSView newView)