]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2003: Clear old document state before loading a new one
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 17 Jan 2017 12:26:16 +0000 (15:26 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 17 Jan 2017 12:26:16 +0000 (15:26 +0300)
src/XGUI/XGUI_Workshop.cpp

index 70d432f4763d12ee83aecb6e5087f7c0510f4322..a4e80d47697522e1f6138cff74a5a90d0cb3ea33 100755 (executable)
@@ -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());