From: vsv Date: Tue, 17 Jan 2017 12:26:16 +0000 (+0300) Subject: Issue #2003: Clear old document state before loading a new one X-Git-Tag: V_2.7.0~332 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b40ec5a7fffcbc100e9c12a414b12a79174e7b0;p=modules%2Fshaper.git Issue #2003: Clear old document state before loading a new one --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 70d432f47..a4e80d476 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -808,6 +808,7 @@ void XGUI_Workshop::openDirectory(const QString& theDirectory) } QApplication::setOverrideCursor(Qt::WaitCursor); + module()->closeDocument(); SessionPtr aSession = ModelAPI_Session::get(); aSession->closeAll(); aSession->load(myCurrentDir.toLatin1().constData());