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
This commit is contained in:
Václav Slavík 2014-09-03 06:55:02 +00:00
parent 796c8079a0
commit 325c678f58

View File

@ -81,6 +81,11 @@ public:
m_notebook->ChangeSelection(page); m_notebook->ChangeSelection(page);
} }
bool ShouldPreventAppExit() const wxOVERRIDE
{
return false;
}
private: private:
wxNotebook *m_notebook; wxNotebook *m_notebook;
}; };