From bdea72eecd498a25f09f0d5716b8e61f90f30136 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 30 Oct 2014 15:37:55 +0300 Subject: [PATCH] Issue #189: Close document on study close. --- src/NewGeom/NewGeom_DataModel.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.2