From: mpa Date: Thu, 19 Jan 2017 07:40:03 +0000 (+0300) Subject: fix problem with getting study by its reference. X-Git-Tag: Before_python3_27062017~1^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf8675a777c345d20359a2ca556b729a1cd06899;p=modules%2Fkernel.git fix problem with getting study by its reference. --- diff --git a/idl/SALOME_Session.idl b/idl/SALOME_Session.idl index fc26d2d47..5715977b1 100644 --- a/idl/SALOME_Session.idl +++ b/idl/SALOME_Session.idl @@ -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 ; diff --git a/src/SALOMEDS/SALOMEDS.cxx b/src/SALOMEDS/SALOMEDS.cxx index 23e4f3a20..432444085 100644 --- a/src/SALOMEDS/SALOMEDS.cxx +++ b/src/SALOMEDS/SALOMEDS.cxx @@ -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(); } }