From b3ab17ea51d37f2dbc6691ec4b2468ac6f76b76c Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 8 Feb 2017 12:46:45 +0300 Subject: [PATCH] reinitialize study after closing doc to have empty data --- src/SalomeApp/SalomeApp_Application.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 68fe5ee66..a77e8215c 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -662,6 +662,9 @@ void SalomeApp_Application::onCloseDoc( bool ask ) } LightApp_Application::onCloseDoc( ask ); + + // reinitialize study to have empty data + getStudy()->Init(); } /*!Sets enable or disable some actions on selection changed.*/ -- 2.39.2