From c474886e0ea69f6806910c3d572dd46bded74fba Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Fri, 17 Nov 2017 11:26:00 +0900 Subject: [PATCH] [4.0] Add QuitFromMainLoop function to idle event with force option. When user hide window, adaptor will be paused. In this situation, user cannot add callback function to idle event. But Application should be terminated when Quit() function is called evenif window is hide. So add QuitFromMainLoop function to idle event with force option. Change-Id: I4fab7310b256e124be3240179330bac5be3fe3ed Signed-off-by: minho.sun --- adaptors/common/application-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adaptors/common/application-impl.cpp b/adaptors/common/application-impl.cpp index d7bf4f1..dcbce52 100644 --- a/adaptors/common/application-impl.cpp +++ b/adaptors/common/application-impl.cpp @@ -184,7 +184,7 @@ void Application::Lower() void Application::Quit() { // Actually quit the application. - AddIdle( MakeCallback( this, &Application::QuitFromMainLoop ) ); + Internal::Adaptor::Adaptor::GetImplementation(*mAdaptor).AddIdle( MakeCallback( this, &Application::QuitFromMainLoop ), true ); } void Application::QuitFromMainLoop() -- 2.7.4