From 325c678f58d95f9b1be43ea8bafdbf03474a4baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 3 Sep 2014 06:55:02 +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/trunk@77520 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..b5ecbe46d4 100644 --- a/src/generic/preferencesg.cpp +++ b/src/generic/preferencesg.cpp @@ -81,6 +81,11 @@ public: m_notebook->ChangeSelection(page); } + bool ShouldPreventAppExit() const wxOVERRIDE + { + return false; + } + private: wxNotebook *m_notebook; };