From: vsr Date: Fri, 16 Jan 2015 16:03:25 +0000 (+0300) Subject: Fix SIGSEGV at SALOME exit X-Git-Tag: V7_5_1rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e689f1ef45f8f78b41f55b979fabd1f6aa5c2db4;p=modules%2Fgui.git Fix SIGSEGV at SALOME exit --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index b9cb79b08..8c68a1e71 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -404,7 +404,7 @@ void SalomeApp_Application::onExit() if ( result ) { if ( !killServers ) myIsCloseFromExit = true; SUIT_Session::session()->closeSession( SUIT_Session::ASK, killServers ); - myIsCloseFromExit = false; + if ( SUIT_Session::session()->applications().count() > 0 ) myIsCloseFromExit = false; } }