*/
void SUIT_Session::closeSession()
{
- for ( AppListIterator it( myAppList ); it.current(); ++it )
+ while ( !myAppList.isEmpty() )
{
- if ( !it.current()->isPossibleToClose() )
+ SUIT_Application* app = myAppList.getFirst();
+ if ( !app->isPossibleToClose() )
return;
+
+ app->closeApplication();
}
- qApp->quit();
}
SUIT_ExceptionHandler* SUIT_Session::handler() const