From: mkr Date: Tue, 17 Nov 2015 07:30:43 +0000 (+0300) Subject: refs #687, #692 - #695: customize enable/disable state of LCM action on create/open... X-Git-Tag: v1.5~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4865d099a49cd85c19df4167aad9520dee2102c;p=modules%2Fhydro.git refs #687, #692 - #695: customize enable/disable state of LCM action on create/open a study. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index 123f9758..5f7f4861 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -1090,6 +1090,10 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent, buildObjectPartition( aGuiObj, aPolylines, tr( "LAND_COVER_POLYLINES" ), true );*/ } + HYDROGUI_Module* aModule = dynamic_cast( module() ); + if( aModule ) + aModule->enableLCMActions(); + } void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase )