From: asl Date: Fri, 27 Nov 2009 09:58:47 +0000 (+0000) Subject: If dependency on certain object is created two times, no exception should be thrown X-Git-Tag: PHASE_17_Part1_V1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d6dc1aef0d9c8adeb28f383be293421e60ae569;p=modules%2Fkernel.git If dependency on certain object is created two times, no exception should be thrown --- diff --git a/src/Notebook/SALOME_Notebook.cxx b/src/Notebook/SALOME_Notebook.cxx index a4b8f9fdf..04a027e6f 100644 --- a/src/Notebook/SALOME_Notebook.cxx +++ b/src/Notebook/SALOME_Notebook.cxx @@ -640,8 +640,8 @@ void SALOME_Notebook::AddDependency( const std::string& theObjKey, const std::st bool ok = find( aList.begin(), aList.end(), theRefKey ) == aList.end(); if( ok ) aList.push_back( theRefKey ); - else - ThrowError( arg( "Dependency %1 -> %2 is already created", anObjName, aRefName ) ); + //else + // ThrowError( arg( "Dependency %1 -> %2 is already created", anObjName, aRefName ) ); } void SALOME_Notebook::ClearDependencies( const std::string& theObjKey, SALOME::DependenciesType theType )