]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
correct update on parameter's value change
authorasl <asl@opencascade.com>
Thu, 10 Dec 2009 11:18:54 +0000 (11:18 +0000)
committerasl <asl@opencascade.com>
Thu, 10 Dec 2009 11:18:54 +0000 (11:18 +0000)
src/Notebook/SALOME_Notebook.hxx
src/Notebook/SALOME_Parameter.cxx

index 7d7f1f46fec1ccf23011aad0d26231479552f6ad..5a8bd68714c1700d1837dfbfa1df01f4b833078b 100644 (file)
@@ -80,6 +80,7 @@ public:
   virtual SALOME::StringArray* GetParameters( const char* theParamName );
 
   SALOME_Parameter* GetParameterPtr( const char* theParamName ) const;
+  void              Update( bool theOnlyParameters );
   void              UpdateAnonymous( const std::string& theOldName, const std::string& theNewName );
   int               GetNewId();
   bool              HasDependency( const std::string& theObjKey, const std::string& theRefKey ) const;
@@ -88,7 +89,6 @@ public:
   void              RebuildLinks();
 
 private:
-  void Update( bool theOnlyParameters );
   void AddParameter( SALOME_Parameter* theParam, bool theAddDependencies = true );
   void AddDependencies( SALOME_Parameter* theParam );
   void AddDependency( const std::string& theObjKey, const std::string& theRefKey );
index 09503b11e3dea0b2ded52f9be701962f518c0023..9dba0d40ade28785989318c7b16685f59292ea8f 100644 (file)
@@ -121,7 +121,7 @@ void SALOME_Parameter::Update( SALOME::Notebook_ptr /*theNotebook*/ )
 void SALOME_Parameter::Update()
 {
   myNotebook->SetToUpdate( _this() );
-  myNotebook->Update();
+  myNotebook->Update( true );
 }
 
 void SALOME_Parameter::SetExpression( const char* theExpr )