diff options
author | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-06-24 19:16:06 +0300 |
---|---|---|
committer | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-06-24 19:16:06 +0300 |
commit | d7e29c9fb2cc78ef6a705e23b56333912e406401 (patch) | |
tree | 47e6da10f62e9d941c0d50869ce43f5bcb05db76 /indra | |
parent | 249d014b67a130265dc05ddf99a3760f7a2ae17b (diff) |
EXT-7973 FIX (additinal) make edit item visible only when one item selected and it is worn
reviewed by Neal Orman at https://codereview.productengine.com/secondlife/r/637/
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llwearableitemslist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llwearableitemslist.cpp b/indra/newview/llwearableitemslist.cpp index da15b93697..2b2615ed24 100644 --- a/indra/newview/llwearableitemslist.cpp +++ b/indra/newview/llwearableitemslist.cpp @@ -662,7 +662,8 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu setMenuItemVisible(menu, "wear_add", mask == MASK_CLOTHING && n_worn == 0); setMenuItemEnabled(menu, "wear_add", n_items == 1 && canAddWearable(ids.front())); setMenuItemVisible(menu, "wear", n_worn == 0); - setMenuItemVisible(menu, "edit", !standalone && mask & (MASK_CLOTHING|MASK_BODYPART) && n_worn == n_items); + //visible only when one item selected and this item is worn + setMenuItemVisible(menu, "edit", !standalone && mask & (MASK_CLOTHING|MASK_BODYPART) && n_worn == n_items && n_worn == 1); setMenuItemEnabled(menu, "edit", n_editable == 1 && n_worn == 1 && n_items == 1); setMenuItemVisible(menu, "create_new", mask & (MASK_CLOTHING|MASK_BODYPART) && n_items == 1); setMenuItemVisible(menu, "show_original", !standalone); |