Salome HOME
[bos #29467] [EDF] (2022-T1) Logging of SALOME usage: specific log in SALOME
authorvsr <vsr@opencascade.com>
Fri, 27 May 2022 09:51:41 +0000 (12:51 +0300)
committerPascal Obry <pascal.obry@edf.fr>
Tue, 5 Sep 2023 09:37:53 +0000 (11:37 +0200)
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMGUI/GeometryGUI.cxx

index a304693fb704133602f5dca81ced07b50176606a..a9f97d7eada472936a8dfe6e0a425ced69bb3606 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 ccff718fe327edc6281814ced792e9c9d0fff147..bb667ddd18a2ce7328ca41708d3b5548f0932c2f 100644 (file)
@@ -980,6 +980,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 );