In ListFrame:InsertEntry() - if there is a parent entry, the child entry inherits its recipe/location/acquire information.
James D. Callahan III [07-01-10 - 19:15]
In ListFrame:InsertEntry() - if there is a parent entry, the child entry inherits its recipe/location/acquire information.
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