From 18718acb0dc65ffbc0ec43f30497cb6b8dbdd752 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 14 Jul 2012 21:40:27 +0000 Subject: [PATCH] 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 --- src/app_ex.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }