@@ -534,13 +534,14 @@ checkEventThread(); if (nestedEventLoopCounter == 0) { throw new IllegalStateException("Not in a nested event loop"); } - + if(GetApplication()!=null) { GetApplication()._leaveNestedEventLoop(retValue); } + } public static boolean isNestedLoopRunning() { checkEventThread(); return nestedEventLoopCounter > 0; }