From: nds Date: Thu, 3 Nov 2005 07:49:59 +0000 (+0000) Subject: createConnections method call fixed to provide correct connections X-Git-Tag: V3_1_0a3~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=723d47870cb4ba2a82533fbab51fbb11fc1b0ab7;p=modules%2Fgui.git createConnections method call fixed to provide correct connections --- diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index a660a57d7..178a47977 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -499,7 +499,6 @@ 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 ); @@ -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 );