From: vsv Date: Thu, 30 Oct 2014 12:37:55 +0000 (+0300) Subject: Issue #189: Close document on study close. X-Git-Tag: V_0.5~58^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdea72eecd498a25f09f0d5716b8e61f90f30136;p=modules%2Fshaper.git Issue #189: Close document on study close. --- diff --git a/src/NewGeom/NewGeom_DataModel.cpp b/src/NewGeom/NewGeom_DataModel.cpp index 267cb0647..76d848046 100644 --- a/src/NewGeom/NewGeom_DataModel.cpp +++ b/src/NewGeom/NewGeom_DataModel.cpp @@ -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(); }