From fc84ffcbec21d63e1666e93c9453149acf2f9832 Mon Sep 17 00:00:00 2001 From: Alexei Arabadji Date: Wed, 28 Jul 2010 18:27:09 +0300 Subject: EXT-7015 ADDITIONAL FIX Updated condition of hiding wear related context menu entries from "hide if all can't be worn" to "hide if any can't be worn". reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/813/ --HG-- branch : product-engine --- indra/newview/llwearableitemslist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llwearableitemslist.cpp b/indra/newview/llwearableitemslist.cpp index 8ea731cf10..34f6fbebd6 100644 --- a/indra/newview/llwearableitemslist.cpp +++ b/indra/newview/llwearableitemslist.cpp @@ -769,7 +769,7 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu U32 n_links = 0; // number of links among the selected items U32 n_editable = 0; // number of editable items among the selected ones - bool can_be_worn = false; + bool can_be_worn = true; for (uuid_vec_t::const_iterator it = ids.begin(); it != ids.end(); ++it) { @@ -807,8 +807,7 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu ++n_already_worn; } - // if any in trash - if (!can_be_worn) + if (can_be_worn) { can_be_worn = get_can_item_be_worn(item->getLinkedUUID()); } -- cgit v1.2.3