From 529e30c37f43c06b966dafcb79426ff0cedda488 Mon Sep 17 00:00:00 2001 From: sln Date: Fri, 31 Aug 2012 08:30:58 +0000 Subject: [PATCH] batch mode is used to launch application without desktop for automatic tests --- src/SUIT/SUIT_Application.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } /*! -- 2.39.2