From 56695eb3f57fcfea400b7c55eebee628dcaa7510 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 1 Jul 2010 15:15:23 -0400 Subject: [PATCH] In ListFrame:InsertEntry() - if there is a parent entry, the child entry inherits its recipe/location/acquire information. --- Frame.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Frame.lua b/Frame.lua index ea3d59d..6bb31aa 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2393,6 +2393,22 @@ do if parent_entry then if parent_entry ~= entry then entry.parent = parent_entry + + local recipe_id = parent_entry.recipe_id + local acquire_id = parent_entry.acquire_id + local location_id = parent_entry.location_id + + if recipe_id then + entry.recipe_id = recipe_id + end + + if acquire_id then + entry.acquire_id = acquire_id + end + + if location_id then + entry.location_id = location_is + end else addon:Debug("Attempting to parent an entry to itself.") end -- 1.7.9.5