From: rkv Date: Thu, 5 Dec 2013 06:07:10 +0000 (+0000) Subject: Fix for the bug #135: It is impossible to rename bathymetry: Rename by F2 is working... X-Git-Tag: BR_hydro_v_0_4~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8601e682c2980af423bc656890c2a56b2fcffdf5;p=modules%2Fhydro.git Fix for the bug #135: It is impossible to rename bathymetry: Rename by F2 is working now (data model is set to the root gui data object (module object). Note: Popup menu still have no item "Rename" in SalomeApp mode because of HYDROGUI_DataObject inheritance not from SalomeApp_DataObject. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index d37789b5..2369f1f5 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -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; }