From: vsr Date: Wed, 28 Feb 2007 08:44:17 +0000 (+0000) Subject: Improvement NPAL14732: display own values for the Reference objects in the Object... X-Git-Tag: V3_2_6a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07080429d9c92480c944c20ac25de8a9620efe5d;p=modules%2Fgui.git Improvement NPAL14732: display own values for the Reference objects in the Object Browser --- diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index 5eb3c97a9..dd9ff8960 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -134,7 +134,9 @@ QString SalomeApp_DataObject::text( const int id ) const #else if ( componentObject() != (SUIT_DataObject*)this ) #endif - txt = value( referencedObject() ); + txt = value( object() ); + if ( txt.isEmpty() ) + txt = value( referencedObject() ); break; case CT_Entry: txt = entry( object() );