From: san Date: Wed, 27 Jul 2005 06:47:38 +0000 (+0000) Subject: Fix for bug Bug PAL9279 ( The study tree folds up itself when a father is set as... X-Git-Tag: T2_2_5a~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9916242c3019474170d1f450e684e4a21be9d257;p=modules%2Fkernel.git Fix for bug Bug PAL9279 ( The study tree folds up itself when a father is set as a reference ). Checking for "AttributeOpened" added for references. --- diff --git a/src/SALOMEGUI/QAD_ObjectBrowser.cxx b/src/SALOMEGUI/QAD_ObjectBrowser.cxx index 958cd0b28..0e146e053 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowser.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowser.cxx @@ -752,6 +752,12 @@ void QAD_ObjectBrowser::Update( SALOMEDS::SObject_ptr SO, CSOEntry, valueString); myListViewMap[ RefSOEntry ].append( Item ); + + // Opened + if ( RefSO->FindAttribute(anAttr, "AttributeOpened") ) { + anOpened = SALOMEDS::AttributeOpened::_narrow(anAttr); + Item->setOpen(anOpened->IsOpened()); + } } else { if(MYDEBUG) MESSAGE("QAD_ObjectBrowser::Update : noname item: "<GetID());