From e4865d099a49cd85c19df4167aad9520dee2102c Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 17 Nov 2015 10:30:43 +0300 Subject: [PATCH] refs #687, #692 - #695: customize enable/disable state of LCM action on create/open a study. --- src/HYDROGUI/HYDROGUI_DataModel.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 ) -- 2.39.2