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
This commit is contained in:
Václav Slavík
2014-09-03 06:56:16 +00:00
parent 0e22e89086
commit ebba02fdb5

View File

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