]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Fix problem with notebook updating
authormpa <mpa@opencascade.com>
Fri, 10 Feb 2017 09:22:55 +0000 (12:22 +0300)
committermpa <mpa@opencascade.com>
Fri, 10 Feb 2017 09:22:55 +0000 (12:22 +0300)
src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx

index 09adc5d2c87eb6e6b4767ea5997c14496d30c4a3..25b63dc5a60094ce477f544cdcf6422f28dcd740 100644 (file)
@@ -1780,7 +1780,9 @@ std::string SALOMEDSImpl_Study::_GetStudyVariablesScript()
 //============================================================================
 std::string SALOMEDSImpl_Study::_GetNoteBookAccess()
 {
-  return std::string("import salome_notebook\n");
+  std::string notebook = "import salome_notebook\n";
+  notebook += _GetNoteBookAccessor() + " = salome_notebook.NoteBook()" ;
+  return notebook;
 }
 
 bool SALOMEDSImpl_Study::IsLocked()