X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCAM%2FCAM_Application.cxx;h=2735234a15bb57f95225e4117abe27236d97fff1;hb=38a197b5e8d857886e1dd4bef461daa456937bf8;hp=1473f6ff2e013c428c40992afcc4c3041e867e06;hpb=a9ed57829a05773f9279ff01dadffa17a4403d16;p=modules%2Fgui.git diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 1473f6ff2..2735234a1 100644 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -464,9 +464,9 @@ bool CAM_Application::activateModule( CAM_Module* mod ) if ( myModule ) { - if ( !myModule->deactivateModule( activeStudy() ) ) + if ( myModule->deactivateModule( activeStudy() ) ) { - // ??? + logUserEvent( tr( "MODULE_DEACTIVATED" ).arg( myModule->moduleName() ) ); } moduleDeactivated( myModule ); } @@ -476,7 +476,11 @@ bool CAM_Application::activateModule( CAM_Module* mod ) { // Connect the module to the active study myModule->connectToStudy( dynamic_cast( activeStudy() ) ); - if ( !myModule->activateModule( activeStudy() ) ) + if ( myModule->activateModule( activeStudy() ) ) + { + logUserEvent( tr( "MODULE_ACTIVATED" ).arg( myModule->moduleName() ) ); + } + else { myModule->setMenuShown( false ); myModule->setToolShown( false );