Fix to allow dialog-only applications to exit normally

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-07-14 21:40:27 +00:00
parent 932ae5d6cc
commit 18718acb0d

View File

@@ -272,15 +272,15 @@ int wxPyApp::MainLoop()
#endif
DeletePendingObjects();
}
//bool initialized = wxTopLevelWindows.GetCount() != 0;
//if (initialized) {
bool initialized = wxTopLevelWindows.GetCount() != 0;
if (initialized) {
if ( m_exitOnFrameDelete == Later ) {
m_exitOnFrameDelete = Yes;
}
retval = wxApp::MainLoop();
OnExit();
//}
}
return retval;
}