From: vsv Date: Wed, 11 Dec 2019 11:32:56 +0000 (+0300) Subject: Do not add a root of the Module. Publish to Study will be used instead. X-Git-Tag: V9_5_0a1~17^2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0ed299891f507287434a242457648ce5cd74dadd;p=modules%2Fshaper.git Do not add a root of the Module. Publish to Study will be used instead. --- diff --git a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp index 70cc7ed62..b11d10e36 100644 --- a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp +++ b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp @@ -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( module()->application()->activeStudy() ); - CAM_ModuleObject *aModelRoot = dynamic_cast(root()); - if(study && aModelRoot == NULL) { - aModelRoot = createModuleObject( study->root() ); - aModelRoot->setDataModel( this ); - setRoot(aModelRoot); - } + //LightApp_Study* study = dynamic_cast( module()->application()->activeStudy() ); + //CAM_ModuleObject *aModelRoot = dynamic_cast(root()); + //if(study && aModelRoot == NULL) { + // aModelRoot = createModuleObject( study->root() ); + // aModelRoot->setDataModel( this ); + // setRoot(aModelRoot); + //} } void SHAPERGUI_DataModel::removeDirectory(const QString& theDirectoryName)