]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
SWP12260
authorouv <ouv@opencascade.com>
Tue, 8 Aug 2006 12:13:11 +0000 (12:13 +0000)
committerouv <ouv@opencascade.com>
Tue, 8 Aug 2006 12:13:11 +0000 (12:13 +0000)
src/LightApp/LightApp_Module.cxx

index 9c1a71335ff97e3508ff2a8a8b709f7f9eee32e0..2a753d8b894cb08ab2df22fc658f769378c39bde 100644 (file)
@@ -138,7 +138,6 @@ void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel,
   bool upd = getApp()->objectBrowser()->isAutoUpdate();
   getApp()->objectBrowser()->setAutoUpdate( false );
 
-  SUIT_DataObject* aDataObject = theDataObject;
   if( theIsUpdateDataModel ){
     if( CAM_DataModel* aDataModel = dataModel() ){
       if ( LightApp_DataModel* aModel = dynamic_cast<LightApp_DataModel*>( aDataModel ) ) {
@@ -149,14 +148,11 @@ void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel,
        LightApp_DataObject* anObject = dynamic_cast<LightApp_DataObject*>(theDataObject);
        LightApp_Study* aStudy = dynamic_cast<LightApp_Study*>(getApp()->activeStudy());
         aModel->update( anObject, aStudy );
-
-       if(aParent && aParent->childPos(anObject) < 0)
-         aDataObject = dynamic_cast<LightApp_DataObject*>(aParent);
       }
     }
   }
   getApp()->objectBrowser()->setAutoUpdate( upd );
-  getApp()->objectBrowser()->updateTree( 0, false /*aDataObject*/ );
+  getApp()->objectBrowser()->updateTree( 0, false );
 }
 
 /*!NOT IMPLEMENTED*/