]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #189: Close document on study close.
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 12:37:55 +0000 (15:37 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 30 Oct 2014 12:37:55 +0000 (15:37 +0300)
src/NewGeom/NewGeom_DataModel.cpp

index 267cb064740a4958beddfe3dc732bd7836e29f4c..76d8480466297a0f6fcf61821fa66d16ff43ba5f 100644 (file)
@@ -65,6 +65,8 @@ bool NewGeom_DataModel::saveAs(const QString& thePath, CAM_Study* theStudy, QStr
 
 bool NewGeom_DataModel::close()
 {
+  SessionPtr aMgr = ModelAPI_Session::get();
+  aMgr->moduleDocument()->close();
   return LightApp_DataModel::close();
 }