From 5d6dc1aef0d9c8adeb28f383be293421e60ae569 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 27 Nov 2009 09:58:47 +0000 Subject: [PATCH] If dependency on certain object is created two times, no exception should be thrown --- src/Notebook/SALOME_Notebook.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.2