From 9916242c3019474170d1f450e684e4a21be9d257 Mon Sep 17 00:00:00 2001 From: san Date: Wed, 27 Jul 2005 06:47:38 +0000 Subject: [PATCH] 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. --- src/SALOMEGUI/QAD_ObjectBrowser.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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()); -- 2.39.2