]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Keep session alive when exiting with
authoradam <adam>
Thu, 24 Mar 2011 08:45:35 +0000 (08:45 +0000)
committeradam <adam>
Thu, 24 Mar 2011 08:45:35 +0000 (08:45 +0000)
"Shutdown servers" deactivated.

src/Session/SALOME_Session_Server.cxx

index fbbf0c635e8de99529b9b9ea05f1507f25d9b3d6..ca8aa3824bf677d4e223f2e777c7d7dca9a7b0c2 100755 (executable)
@@ -575,8 +575,11 @@ int main( int argc, char **argv )
 
         if ( result == SUIT_Session::NORMAL ) { // desktop is closed by user from GUI
           shutdown = aGUISession->exitFlags();
-          _SessionMutex.lock();
-          break;
+          if(shutdown)
+            {
+              _SessionMutex.lock();
+              break;
+            }
         }
       }