From: stv Date: Tue, 29 Aug 2006 11:06:58 +0000 (+0000) Subject: updateModelRoot() invoked in any case. X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9fb7c09b999a74b97bc26449107375c8d6fd1bb;p=modules%2Fgui.git updateModelRoot() invoked in any case. --- diff --git a/src/CAM/CAM_Study.cxx b/src/CAM/CAM_Study.cxx index d874e5a3f..65ded0325 100755 --- a/src/CAM/CAM_Study.cxx +++ b/src/CAM/CAM_Study.cxx @@ -127,10 +127,8 @@ void CAM_Study::dataModelInserted( const CAM_DataModel* dModel ) openDataModel( studyName(), dm ); else // no, just need to update data model's connection to study tree //(some application may want to show model's root in a study tree even if a model is empty) - { dm->create( this ); - updateModelRoot( dm ); - } + updateModelRoot( dm ); } /*! \retval false*/