]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
createConnections method call fixed to provide correct connections
authorsln <sln@opencascade.com>
Mon, 31 Oct 2005 13:24:47 +0000 (13:24 +0000)
committersln <sln@opencascade.com>
Mon, 31 Oct 2005 13:24:47 +0000 (13:24 +0000)
src/ObjBrowser/OB_Browser.cxx

index a660a57d762860607f6a1f12c68544be83fdc7ef..94831f1c6ae06942fd9e2144fa9f6f7582427e79 100755 (executable)
@@ -499,9 +499,8 @@ void OB_Browser::updateTree( SUIT_DataObject* obj )
 
   SUIT_DataObject* curObj = storeState( selObjs, openObjs, selKeys, openKeys, curKey );
 
-  createConnections( obj );
   updateView( obj );
-
+    
   restoreState( selObjs, openObjs, curObj, selKeys, openKeys, curKey );
 
   autoOpenBranches();
@@ -537,8 +536,8 @@ void OB_Browser::replaceTree( SUIT_DataObject* src, SUIT_DataObject* trg )
 
   trg->setParent( parent );
 
-  createConnections( trg );
   updateView( trg );
+  createConnections( trg );
 
   restoreState( selObjs, openObjs, curObj, selKeys, openKeys, curKey );
 
@@ -680,6 +679,7 @@ QListViewItem* OB_Browser::createItem( const SUIT_DataObject* o,
   }
 
   myItems.insert( obj, item );
+  obj->connect( this, SLOT( onDestroyed( SUIT_DataObject* ) ) );
 
   updateText( item );
 
@@ -1089,3 +1089,8 @@ void OB_Browser::openBranch( QListViewItem* item, const int level )
     item = item->nextSibling();
   }
 }
+
+
+
+
+