]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
If dependency on certain object is created two times, no exception should be thrown
authorasl <asl@opencascade.com>
Fri, 27 Nov 2009 09:58:47 +0000 (09:58 +0000)
committerasl <asl@opencascade.com>
Fri, 27 Nov 2009 09:58:47 +0000 (09:58 +0000)
src/Notebook/SALOME_Notebook.cxx

index a4b8f9fdf32805c7bd767763a67e4301305585dd..04a027e6f00988aae84d8e62c56159b7bc8233b6 100644 (file)
@@ -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 )