]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not add a root of the Module. Publish to Study will be used instead.
authorvsv <vsv@opencascade.com>
Wed, 11 Dec 2019 11:32:56 +0000 (14:32 +0300)
committervsv <vsv@opencascade.com>
Wed, 11 Dec 2019 11:32:56 +0000 (14:32 +0300)
src/SHAPERGUI/SHAPERGUI_DataModel.cpp

index 70cc7ed624d5581a46a263f741d435ed3ac84645..b11d10e362294a3a183b62859fb73d9b0dc5f8c7 100644 (file)
@@ -128,7 +128,6 @@ bool SHAPERGUI_DataModel::saveAs(const QString& thePath, CAM_Study* theStudy, QS
 
 bool SHAPERGUI_DataModel::close()
 {
-  myModule->publishToStudy();
   myModule->workshop()->closeDocument();
   return LightApp_DataModel::close();
 }
@@ -158,13 +157,13 @@ void SHAPERGUI_DataModel::update(LightApp_DataObject* theObj, LightApp_Study* th
 
 void SHAPERGUI_DataModel::initRootObject()
 {
-  LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
-  CAM_ModuleObject *aModelRoot = dynamic_cast<CAM_ModuleObject*>(root());
-  if(study && aModelRoot == NULL) {
-    aModelRoot = createModuleObject( study->root() );
-    aModelRoot->setDataModel( this );
-    setRoot(aModelRoot);
-  }
+  //LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
+  //CAM_ModuleObject *aModelRoot = dynamic_cast<CAM_ModuleObject*>(root());
+  //if(study && aModelRoot == NULL) {
+  //  aModelRoot = createModuleObject( study->root() );
+  //  aModelRoot->setDataModel( this );
+  //  setRoot(aModelRoot);
+  //}
 }
 
 void SHAPERGUI_DataModel::removeDirectory(const QString& theDirectoryName)