summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryitemslist.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-06-11 08:15:09 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-06-11 08:15:09 +0100
commit866961d4b3426114c306e158b50fe3a91b45021d (patch)
tree2faed81beaa45b8662ba3b406039ea547a6297e8 /indra/newview/llinventoryitemslist.cpp
parentfc6d238884f06951a413004b46569304a9d9280a (diff)
parent99bf3245bd89afebcf1d00bf45d5367c1a83bee1 (diff)
merge from PE's viewer-release
Diffstat (limited to 'indra/newview/llinventoryitemslist.cpp')
-rw-r--r--indra/newview/llinventoryitemslist.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llinventoryitemslist.cpp b/indra/newview/llinventoryitemslist.cpp
index 3e5f8d9848..55cb2619cf 100644
--- a/indra/newview/llinventoryitemslist.cpp
+++ b/indra/newview/llinventoryitemslist.cpp
@@ -79,7 +79,15 @@ void LLPanelInventoryListItemBase::draw()
void LLPanelInventoryListItemBase::updateItem()
{
setIconImage(mIconImage);
- setTitle(mItem->getName(), mHighlightedText);
+
+ std::string name = mItem->getName();
+
+ if (get_is_item_worn(mItem->getUUID()))
+ {
+ name += LLTrans::getString("worn");
+ }
+
+ setTitle(name, mHighlightedText);
}
void LLPanelInventoryListItemBase::addWidgetToLeftSide(const std::string& name, bool show_widget/* = true*/)