Go to file
Vadim Zeitlin 8ce753db08 Destroy all views associated to wxDocument being forcefully closed.
Forcefully closing a modified document misbehaved in several ways: first, the
question about whether the document should be saved was asked twice if the
first message box was cancelled. Second, DeleteAllViews() didn't actually
delete the views if the second message box was cancelled as well -- so the
views could be left alive while their associated document was destroyed,
resulting in more or less guaranteed crash (e.g. during the next event
handling as wxDocChildFrameAnyBase::TryProcessEvent() assumes that
m_childDocument is still alive if m_childView is).

Fix both problems by really forcing the document to close by pretending that
it is not modified.

We still ask the user once though, as it could be useful to be able to save
the document even when it will be closed. Ideally, the message box shown in
this case shouldn't have a "Cancel" button at all, but this is left for the
future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-12-19 15:56:42 +00:00
art Add wxART_FULL_SCREEN icon. 2014-10-11 16:30:06 +00:00
build Xcode project: src/regex must be in non-user search path 2014-12-05 15:55:26 +00:00
demos Fix resource compiler include path for Borland. 2014-10-11 16:30:00 +00:00
distrib Remove support for Digital Mars compiler. 2014-05-16 13:01:23 +00:00
docs Add wxEVT_MAGNIFY mouse event. 2014-12-16 13:59:26 +00:00
include Added shadows to box attributes, and relevant controls in the Background page. 2014-12-17 16:04:03 +00:00
interface Added shadows to box attributes, and relevant controls in the Background page. 2014-12-17 16:04:03 +00:00
lib Update compile support for wxX11 on OpenVMS 2014-11-07 13:17:24 +00:00
locale Turkish translations update from Kaya Zeren. 2014-11-27 00:45:38 +00:00
misc Add XRC handler for wxSimplebook. 2014-08-05 22:01:52 +00:00
samples Remove unnecessary wxUSE_MFC option. 2014-12-16 20:16:16 +00:00
src Destroy all views associated to wxDocument being forcefully closed. 2014-12-19 15:56:42 +00:00
tests Cast size_t value when using it with printf() in a test. 2014-12-10 00:14:14 +00:00
utils Fix resource compiler include path for Borland. 2014-10-11 16:30:00 +00:00
.travis.yml Build 3.0 branch on Travis as well. 2014-05-16 10:53:51 +00:00
acinclude.m4 Add --disable-sys-libs configure option. 2014-07-24 11:34:14 +00:00
aclocal.m4 Remove wxPM, wxWidgets port to OS/2. 2014-05-15 23:56:58 +00:00
autoconf_inc.m4 Rebaked with new wxTaskBarButton and taskbarbutton sample. 2014-09-10 14:59:13 +00:00
autogen.sh Use build/autoconf_prepend-include when running autoconf 2008-02-22 22:31:20 +00:00
BuildSVN.txt Merge the changes from 3.0 branch. 2013-11-12 18:06:37 +00:00
config.guess Update configure helper scripts to latest versions from GNU project. 2010-11-26 13:31:15 +00:00
config.sub Update configure helper scripts to latest versions from GNU project. 2010-11-26 13:31:15 +00:00
configure Add a new wxUSE_STD_CONTAINERS_COMPATIBLY option. 2014-10-24 21:54:51 +00:00
configure.in Add a new wxUSE_STD_CONTAINERS_COMPATIBLY option. 2014-10-24 21:54:51 +00:00
CONTRIBUTING.md Add brief contribution instructions for Github users. 2014-06-11 20:01:04 +00:00
descrip.mms Update OpenVMS compile support 2013-08-27 12:02:20 +00:00
install-sh second try... 1999-06-01 16:14:29 +00:00
Makefile.in Only link webview library with libwebkitgtk in wxGTK, not the core one. 2014-10-16 13:33:08 +00:00
mkinstalldirs Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
README.md Added a brief version of README in markdown for Github users. 2014-06-11 21:31:57 +00:00
regen Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
setup.h_vms Remove unnecessary wxUSE_MFC option. 2014-12-16 20:16:16 +00:00
setup.h.in Remove unnecessary wxUSE_MFC option. 2014-12-16 20:16:16 +00:00
version-script.in Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config-inplace.in Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config.in Remove wxPM, wxWidgets port to OS/2. 2014-05-15 23:56:58 +00:00
wxwin.m4 Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00

About

wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.

wxWidgets Logo

wxWidgets allows you to write native-looking GUI applications for all the major desktop platforms and also helps with abstracting the differences in the non-GUI aspects between them. It is free for the use in both open source and commercial applications, comes with the full, easy to read and modify, source and extensive documentation and a collection of more than a hundred examples. You can learn more about wxWidgets at http://www.wxwidgets.org/ and read its documentation online at http://docs.wxwidgets.org/

Platforms

wxWidgets currently supports the following primary platforms:

  • Windows XP, Vista, 7 and 8 (32/64 bits).
  • Most Unix variants using the GTK+ toolkit (version 2.6 or newer or 3.x).
  • Mac OS X (10.6 or newer) using Cocoa (32/64 bits) or Carbon (32 only).

Most popular C++ compilers are supported including but not limited to:

  • Microsoft Visual C++ 2003 or later (up to 2013).
  • g++ 3.4 or later, including MinGW/MinGW-64/TDM under Windows.
  • Clang under OS X and Linux.
  • Intel icc compiler.
  • Oracle (ex-Sun) aCC.

Licence

wxWidgets licence is a modified version of LGPL explicitly allowing not distributing the sources of an application using the library even in the case of static linking.

Further information

If you are looking for support, you can get it from

We would also gladly welcome your contributions.

Have fun!

The wxWidgets Team.