]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
fix problem with getting study by its reference.
authormpa <mpa@opencascade.com>
Thu, 19 Jan 2017 07:40:03 +0000 (10:40 +0300)
committermpa <mpa@opencascade.com>
Thu, 19 Jan 2017 07:40:03 +0000 (10:40 +0300)
idl/SALOME_Session.idl
src/SALOMEDS/SALOMEDS.cxx

index fc26d2d4741ffe9003d5bee29cd023a9af9e5045..5715977b19f93fcb8cc5f5cf0648a0d5cbb6ea1a 100644 (file)
@@ -51,7 +51,7 @@ module SALOME
 
    It can be:
         -# asleep  : no running study
-        -# running : one or more running studies
+        -# running : one running study
 */
     SessionState state ;
 
index 23e4f3a20a95161463f7f6d1757eb0463bebcfb3..4324440853387c8cd0d7c34b83aa0c8cb10e9709 100644 (file)
@@ -118,10 +118,9 @@ extern "C"
       namingService.Register(aStudy, "/Study");
 
       // Assign the value of the IOR in the study->root
-      if ( aStudy_i->GetImpl()->GetTransientReference().empty() ) {
-        CORBA::String_var IORStudy = orb->object_to_string(aStudy);
-        aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
-      }
+      CORBA::String_var IORStudy = orb->object_to_string(aStudy);
+      aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in());
+      aStudy_i->GetImpl()->GetDocument()->SetModified(false);
       aStudy_i->_remove_ref();
     }
   }