]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #687, #692 - #695: customize enable/disable state of LCM action on create/open...
authormkr <mkr@opencascade.com>
Tue, 17 Nov 2015 07:30:43 +0000 (10:30 +0300)
committermkr <mkr@opencascade.com>
Tue, 17 Nov 2015 07:30:43 +0000 (10:30 +0300)
src/HYDROGUI/HYDROGUI_DataModel.cxx

index 123f975887faf7d6346af272a6f1f0be2975a784..5f7f48610bcf13ebbbcccf1bacf0c911c4588c06 100644 (file)
@@ -1090,6 +1090,10 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent,
     buildObjectPartition( aGuiObj, aPolylines, tr( "LAND_COVER_POLYLINES" ), true );*/
   }
   
+  HYDROGUI_Module* aModule = dynamic_cast<HYDROGUI_Module*>( module() );
+  if( aModule )
+    aModule->enableLCMActions();
+  
 }
 
 void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase )