diff --git a/src/app_ex.cpp b/src/app_ex.cpp index 1854cb3d..fd8de354 100644 --- a/src/app_ex.cpp +++ b/src/app_ex.cpp @@ -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; }