call wxApp::OnExit() when wxExit() is called and don't do wxLogError from it (replaces patch 709142)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1287,10 +1287,15 @@ int wxApp::GetComCtl32Version()
|
|||||||
|
|
||||||
void wxExit()
|
void wxExit()
|
||||||
{
|
{
|
||||||
wxLogError(_("Fatal error: exiting"));
|
if ( wxTheApp )
|
||||||
|
{
|
||||||
wxApp::CleanUp();
|
wxTheApp->ExitMainLoop();
|
||||||
exit(0);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// what else can we do?
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Yield to incoming messages
|
// Yield to incoming messages
|
||||||
|
Reference in New Issue
Block a user