EXT-7789 FIXED Removed "Rename Outfit" option from My Outfits gear menu
Reviewed by Nyx at https://codereview.productengine.com/secondlife/r/584/ --HG-- branch : product-enginemeow-7.2.2
parent
cfb9a6e341
commit
c773e01fbf
|
|
@ -86,7 +86,6 @@ public:
|
|||
|
||||
registrar.add("Gear.Wear", boost::bind(&LLOutfitListGearMenu::onWear, this));
|
||||
registrar.add("Gear.TakeOff", boost::bind(&LLOutfitListGearMenu::onTakeOff, this));
|
||||
registrar.add("Gear.Rename", boost::bind(&LLOutfitListGearMenu::onRename, this));
|
||||
registrar.add("Gear.Delete", boost::bind(&LLOutfitListGearMenu::onDelete, this));
|
||||
registrar.add("Gear.Create", boost::bind(&LLOutfitListGearMenu::onCreate, this, _2));
|
||||
|
||||
|
|
@ -159,15 +158,6 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
void onRename()
|
||||
{
|
||||
const LLUUID& selected_outfit_id = getSelectedOutfitID();
|
||||
if (selected_outfit_id.notNull())
|
||||
{
|
||||
LLAppearanceMgr::instance().renameOutfit(selected_outfit_id);
|
||||
}
|
||||
}
|
||||
|
||||
void onDelete()
|
||||
{
|
||||
const LLUUID& selected_outfit_id = getSelectedOutfitID();
|
||||
|
|
@ -197,11 +187,7 @@ private:
|
|||
return false;
|
||||
}
|
||||
|
||||
if ("rename" == param)
|
||||
{
|
||||
return get_is_category_renameable(&gInventory, selected_outfit_id);
|
||||
}
|
||||
else if ("delete" == param)
|
||||
if ("delete" == param)
|
||||
{
|
||||
return LLAppearanceMgr::instance().getCanRemoveOutfit(selected_outfit_id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,19 +175,6 @@
|
|||
<!-- copied from menu_inventory_add.xml -->
|
||||
|
||||
<menu_item_separator name="sepatator2" />
|
||||
<menu_item_call
|
||||
label="Rename Outfit"
|
||||
layout="topleft"
|
||||
name="rename">
|
||||
<on_click
|
||||
function="Gear.Rename" />
|
||||
<on_enable
|
||||
function="Gear.OnEnable"
|
||||
parameter="rename" />
|
||||
<on_visible
|
||||
function="Gear.OnVisible"
|
||||
parameter="rename" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Delete Outfit"
|
||||
layout="topleft"
|
||||
|
|
|
|||
Loading…
Reference in New Issue