]> git.saurik.com Git - wxWidgets.git/commit
Always call wxView::Close() when closing it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Mar 2010 10:36:36 +0000 (10:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Mar 2010 10:36:36 +0000 (10:36 +0000)
commitcf30eac295e012ad76104bc49fcfaa639a536b8b
tree174e11b00a9e72b9848d07c39026d5d21209367d
parent09783f72d496a9de0cd6e4f9160b4e7378546733
Always call wxView::Close() when closing it.

After wxDocView refactoring the behaviour has changed and wxView::Close() and
hence user-overriddable OnClose() called from it) was only called if the close
event could be vetoed. This broke code which relied on OnClose() being
executed in any case to perform some cleanup and was incompatible with 2.8 so
restore the old behaviour now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/docview.cpp