From 4aca223a80edb8e0eb2fde3539ff261127e2515a Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 8 Dec 2005 14:41:59 +0000 Subject: [PATCH] PAL10841: To disable exception handler in GUI by command line option --- src/SalomeApp/resources/SalomeApp.xml | 1 + src/Session/SALOME_Session_Server.cxx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/resources/SalomeApp.xml b/src/SalomeApp/resources/SalomeApp.xml index 5b525482a..f4a1acd58 100644 --- a/src/SalomeApp/resources/SalomeApp.xml +++ b/src/SalomeApp/resources/SalomeApp.xml @@ -16,6 +16,7 @@ + diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 84c7f7a81..b6d432064 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -413,8 +413,9 @@ int main( int argc, char **argv ) SUIT_Application* aGUIApp = aGUISession->startApplication( "SalomeApp", 0, 0 ); if ( aGUIApp ) { - _qappl.setHandler( aGUISession->handler() ); // after loading SalomeApp application - // aGUISession contains SalomeApp_ExceptionHandler + if ( !isFound( "noexcepthandler", argc, argv ) ) + _qappl.setHandler( aGUISession->handler() ); // after loading SalomeApp application + // aGUISession contains SalomeApp_ExceptionHandler // Run GUI loop MESSAGE( "run(): starting the main event loop" ); result = _qappl.exec(); -- 2.39.2