]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2660: Update data model before save.
authorvsv <vsv@opencascade.com>
Fri, 28 Sep 2018 10:12:16 +0000 (13:12 +0300)
committervsv <vsv@opencascade.com>
Fri, 28 Sep 2018 10:12:16 +0000 (13:12 +0300)
src/SHAPERGUI/SHAPERGUI_DataModel.cpp

index 8b2eedd403a5d1930fef55bfb1c79746139310ad..bccdab2615a50bd794729ec445efdd924833fb95 100644 (file)
@@ -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<std::string>::iterator aIt;
   for (aIt = aFileNames.begin(); aIt != aFileNames.end(); ++aIt) {