From: vsv Date: Fri, 28 Sep 2018 10:12:16 +0000 (+0300) Subject: Issue #2660: Update data model before save. X-Git-Tag: CEA_2018-2~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d8267a424a809d0f96593b13f8472666553ce2e;p=modules%2Fshaper.git Issue #2660: Update data model before save. --- diff --git a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp index 8b2eedd40..bccdab261 100644 --- a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp +++ b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp @@ -113,6 +113,10 @@ bool SHAPERGUI_DataModel::save(QStringList& theFiles) //std::string aTmpDir = aStudy->GetTmpDir("", false);//true ); theFiles.append(QString(aTmpDir.c_str())); + SessionPtr aMgr = ModelAPI_Session::get(); + if (aMgr->isAutoUpdateBlocked()) + aMgr->blockAutoUpdate(false); + aWorkShop->saveDocument(QString(aTmpDir.c_str()), aFileNames); std::list::iterator aIt; for (aIt = aFileNames.begin(); aIt != aFileNames.end(); ++aIt) {