From: sln Date: Fri, 31 Aug 2012 08:30:58 +0000 (+0000) Subject: batch mode is used to launch application without desktop for automatic tests X-Git-Tag: CTH_1_8_0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=529e30c37f43c06b966dafcb79426ff0cedda488;p=modules%2Fgui.git batch mode is used to launch application without desktop for automatic tests --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index 0a7b9ecf3..e4bf4f882 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -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(); + } } /*!