]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for the bug #135: It is impossible to rename bathymetry: Rename by F2 is working...
authorrkv <rkv@opencascade.com>
Thu, 5 Dec 2013 06:07:10 +0000 (06:07 +0000)
committerrkv <rkv@opencascade.com>
Thu, 5 Dec 2013 06:07:10 +0000 (06:07 +0000)
Note: Popup menu still have no item "Rename" in SalomeApp mode because of HYDROGUI_DataObject inheritance not from SalomeApp_DataObject.

src/HYDROGUI/HYDROGUI_DataModel.cxx

index d37789b5b61a58d9ed59202acb78f75c39300ea1..2369f1f52e58533dd3f44eff1453c7b70e8056a2 100644 (file)
@@ -438,7 +438,8 @@ void HYDROGUI_DataModel::update( LightApp_DataObject* theObject,
 
 CAM_DataObject* HYDROGUI_DataModel::createRootModuleObject( SUIT_DataObject* theParent )
 {
-  CAM_DataObject* aRootObj = createModuleObject( theParent );
+  CAM_ModuleObject* aRootObj = createModuleObject( theParent );
+  aRootObj->setDataModel( this );
   setRoot( aRootObj );
   return aRootObj;
 }