[4.0] Add QuitFromMainLoop function to idle event with force option. 67/160567/2
authorminho.sun <minho.sun@samsung.com>
Fri, 17 Nov 2017 02:26:00 +0000 (11:26 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 17 Nov 2017 02:44:20 +0000 (02:44 +0000)
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 <minho.sun@samsung.com>
adaptors/common/application-impl.cpp

index d7bf4f1..dcbce52 100644 (file)
@@ -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()