From 9d8267a424a809d0f96593b13f8472666553ce2e Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 28 Sep 2018 13:12:16 +0300 Subject: [PATCH] Issue #2660: Update data model before save. --- src/SHAPERGUI/SHAPERGUI_DataModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.2