X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_Session.cxx;h=08d85b0f404b1ef28191155d0c96bddf54d25a50;hb=4915803800e885696c8063715c30b2b0df170f91;hp=d2c547c1dbe4ecf1714e9a230560ac5e60b4c5fd;hpb=2e750f9ded92337bc3c44e9d7388180974cc4a43;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_Session.cxx b/src/SUIT/SUIT_Session.cxx index d2c547c1d..08d85b0f4 100755 --- a/src/SUIT/SUIT_Session.cxx +++ b/src/SUIT/SUIT_Session.cxx @@ -191,12 +191,14 @@ void SUIT_Session::onApplicationClosed( SUIT_Application* theApp ) */ 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