]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL10841: To disable exception handler in GUI by command line option
authorvsr <vsr@opencascade.com>
Thu, 8 Dec 2005 14:41:59 +0000 (14:41 +0000)
committervsr <vsr@opencascade.com>
Thu, 8 Dec 2005 14:41:59 +0000 (14:41 +0000)
src/SalomeApp/resources/SalomeApp.xml
src/Session/SALOME_Session_Server.cxx

index 5b525482a564c3fc930cac27ac1fcde69194e419..f4a1acd58db65abbe0bded17a0337d09da08762b 100644 (file)
@@ -16,6 +16,7 @@
     <parameter name="xterm"      value="no"/>
     <parameter name="portkill"   value="no"/>
     <parameter name="killall"    value="no"/>
+    <parameter name="noexcepthandler"  value="no"/>
     <parameter name="modules"    value="GEOM,SMESH,VISU,SUPERV,MED,COMPONENT"/>
     <parameter name="pyModules"  value=""/>
     <parameter name="embedded"   value="SalomeAppEngine,study"/>
index 84c7f7a816a769ad18ab28304c90dc00cb79b9d2..b6d432064edff5f2ea43d11a542e0c2148c61195 100755 (executable)
@@ -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();