From e8d53c0deb57770f8e36c006ea585333fe553b4d Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 17 Jan 2017 12:01:33 +0300 Subject: [PATCH] Fix problem with wrong call of method setIsSaved from GUI. --- src/SALOMEDS/SALOMEDS_Study_i.cxx | 1 + src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SALOMEDS/SALOMEDS_Study_i.cxx b/src/SALOMEDS/SALOMEDS_Study_i.cxx index 63bf3c60f..ad532e303 100644 --- a/src/SALOMEDS/SALOMEDS_Study_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Study_i.cxx @@ -296,6 +296,7 @@ void SALOMEDS_Study_i::Init() CORBA::String_var IORStudy = _orb->object_to_string(aStudy); _impl->SetTransientReference((char*)IORStudy.in()); } + _impl->GetDocument()->SetModified(false); } diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 42bc8839b..d10e3383e 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1897,8 +1897,6 @@ bool SALOMEDSImpl_Study::IsModified() std::string SALOMEDSImpl_Study::URL() { _errorCode = ""; - if ( _URL.empty() ) - return Kernel_Utils::AddExtension( _name ); return _URL; } -- 2.39.2