diff options
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index c2594c1b87..2624640bb4 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -586,14 +586,19 @@ void LLInventoryGallery::updateAddedItem(LLUUID item_id) return; } + std::string name = obj->getName(); LLUUID thumbnail_id = obj->getThumbnailUUID();; - if ((LLAssetType::AT_CATEGORY == obj->getType()) && thumbnail_id.isNull()) + if (LLAssetType::AT_CATEGORY == obj->getType()) { - thumbnail_id = getOutfitImageID(item_id); + name = get_localized_folder_name(item_id); + if(thumbnail_id.isNull()) + { + thumbnail_id = getOutfitImageID(item_id); + } } - - LLInventoryGalleryItem* item = buildGalleryItem(obj->getName(), item_id, obj->getType(), thumbnail_id, obj->getIsLinkType()); + + LLInventoryGalleryItem* item = buildGalleryItem(name, item_id, obj->getType(), thumbnail_id, obj->getIsLinkType()); mItemMap.insert(LLInventoryGallery::gallery_item_map_t::value_type(item_id, item)); item->setFocusReceivedCallback(boost::bind(&LLInventoryGallery::onChangeItemSelection, this, item_id)); |