]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Batch mode for DIAGRAM unit tests
authorsln <sln@opencascade.com>
Thu, 13 Sep 2012 06:15:45 +0000 (06:15 +0000)
committersln <sln@opencascade.com>
Thu, 13 Sep 2012 06:15:45 +0000 (06:15 +0000)
src/SUIT/SUIT_Application.cxx

index 0a7b9ecf3bed91bc2fe88189ef680e6cf451c86c..e4bf4f8826350abbd5ae5aa00a2a1d3d95b7e528 100755 (executable)
@@ -118,7 +118,11 @@ QString SUIT_Application::applicationVersion() const
 void SUIT_Application::start()
 {
   if ( desktop() )
-    desktop()->show();
+  {
+    // sln: BATCH_MODE is used to launch application without desktop for automatic tests
+    if ( !getenv( "SALOME_BATCH_MODE" ) )
+      desktop()->show();
+  }
 }
 
 /*!