if ( !CORBA::is_nil(aComponent) && aComponent->hasObjectInfo() ) {
LightApp_RootObject* aRoot = dynamic_cast<LightApp_RootObject*>( root() );
- if ( aRoot && aRoot->study() )
- return QString( (CORBA::String_var)aComponent->getObjectInfo( aRoot->study()->id(), entry().toLatin1().constData()) );
+ if ( aRoot && aRoot->study() ) {
+ CORBA::String_var data = aComponent->getObjectInfo( aRoot->study()->id(), entry().toLatin1().constData());
+ QString objInfo = data.in();
+ QStringList l;
+ l << name();
+ if ( !objInfo.isEmpty() )
+ l << objInfo;
+ return l.join("\n");
+ }
}
}
}