]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Calls of setAutoUpdate are added
authorasl <asl@opencascade.com>
Wed, 5 Apr 2006 06:22:13 +0000 (06:22 +0000)
committerasl <asl@opencascade.com>
Wed, 5 Apr 2006 06:22:13 +0000 (06:22 +0000)
src/LightApp/LightApp_Module.cxx

index 691d68b98bd74f83193496fc50e4413824c52a31..66020ad44c6e6f42a6788d6dd6dcaa79cf32121c 100644 (file)
@@ -117,6 +117,9 @@ void LightApp_Module::contextMenuPopup( const QString& client, QPopupMenu* menu,
 void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel, 
                                        SUIT_DataObject* theDataObject )
 {
+  bool upd = getApp()->objectBrowser()->isAutoUpdate();
+  getApp()->objectBrowser()->setAutoUpdate( false );
+
   SUIT_DataObject* aDataObject = theDataObject;
   if( theIsUpdateDataModel ){
     if( CAM_DataModel* aDataModel = dataModel() ){
@@ -134,7 +137,8 @@ void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel,
       }
     }
   }
-  getApp()->objectBrowser()->updateTree( aDataObject );
+  getApp()->objectBrowser()->setAutoUpdate( upd );
+  getApp()->objectBrowser()->updateTree( 0, false /*aDataObject*/ );
 }
 
 /*!NOT IMPLEMENTED*/