]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[bos #29467] [EDF] (2022-T1) Logging of SALOME usage: specific log in SALOME jfa/29467_gui_log_file
authorvsr <vsr@opencascade.com>
Fri, 27 May 2022 09:51:41 +0000 (12:51 +0300)
committervsr <vsr@opencascade.com>
Fri, 27 May 2022 09:51:41 +0000 (12:51 +0300)
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMGUI/GeometryGUI.cxx

index 06fdbce41daa512e458988ed49b05a864ac8b116..cd936d3e4a712d45c384b9e825de82b3119979e8 100644 (file)
@@ -943,6 +943,7 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
         }
 
         if ( nbObjs ) {
+          SalomeApp_Application::logUserEvent( QString( "Geometry") + ": " + QObject::tr( "OPERATION_APPLIED" ) );
           commitCommand();
           updateObjBrowser();
           if( SUIT_Application* anApp = SUIT_Session::session()->activeApplication() ) {
index 31bbe17166d21eeee8215a804cab764eef1702c6..51c2f9efc63b7ead1fb121587192c8af9d7a6136 100644 (file)
@@ -970,6 +970,8 @@ void GeometryGUI::initialize( CAM_Application* app )
 {
   SalomeApp_Module::initialize( app );
 
+  setActionLoggingEnabled( true ); // enable action logging
+
   // ----- create actions --------------
 
   createGeomAction( GEOMOp::OpDelete,     "DELETE", "", Qt::Key_Delete );