mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 05:47:09 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user