@@ -1204,6 +1204,15 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu
12041204 bool rlvCanRemove = !RlvActions::isRlvEnabled ();
12051205// [/RLVa:KB]
12061206
1207+ // <FS:Trish> Fix for "Delete from outfit" context menu option showing in favorites window.
1208+ bool is_outfit_menu = false ;
1209+ LLUUID outfit_folder_id = gInventory .findCategoryUUIDForType (LLFolderType::FT_MY_OUTFITS);
1210+ if (!ids.empty ())
1211+ {
1212+ is_outfit_menu = gInventory .isObjectDescendentOf (ids.front (), outfit_folder_id);
1213+ }
1214+ // </FS:Trish>
1215+
12071216 for (uuid_vec_t ::const_iterator it = ids.begin (); it != ids.end (); ++it)
12081217 {
12091218 LLUUID id = *it;
@@ -1315,8 +1324,8 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu
13151324 setMenuItemVisible (menu, " show_original" , !standalone);
13161325 setMenuItemEnabled (menu, " show_original" , n_items == 1 && n_links == n_items);
13171326// <AS:Chanayane> Delete from outfit context menu entry
1318- setMenuItemVisible (menu, " delete_from_outfit" , n_links > 0 );
1319- setMenuItemEnabled (menu, " delete_from_outfit" , n_links > 0 );
1327+ setMenuItemVisible (menu, " delete_from_outfit" , n_links > 0 && is_outfit_menu );
1328+ setMenuItemEnabled (menu, " delete_from_outfit" , n_links > 0 && is_outfit_menu );
13201329// </AS:Chanayane>
13211330 setMenuItemVisible (menu, " favorites_add" , can_favorite);
13221331 setMenuItemVisible (menu, " favorites_remove" , can_unfavorite);
0 commit comments