From ebba02fdb53dbcd4ba3184cefc7d76f3fd13d0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 3 Sep 2014 06:56:16 +0000 Subject: [PATCH] Don't prevent app exit when only preferences window exists. Don't prevent termination of the app if all windows are closed, except for the preferences one (which may very well be hidden at the moment). This only affects platforms where the preferences are modeless (GTK+, OS X) and where the preferences window, once created, continues to exist, but is hidden. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/preferencesg.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/preferencesg.cpp b/src/generic/preferencesg.cpp index 97236af305..45b311de64 100644 --- a/src/generic/preferencesg.cpp +++ b/src/generic/preferencesg.cpp @@ -81,6 +81,11 @@ public: m_notebook->ChangeSelection(page); } + bool ShouldPreventAppExit() const + { + return false; + } + private: wxNotebook *m_notebook; };