From c8724fa4e83527a1f06bf981ecd6744d58a3bf95 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 3 Jul 2011 23:38:59 -0500 Subject: [PATCH] Reverting commit "Minor cleanup." --- Interface/List.lua | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Interface/List.lua b/Interface/List.lua index 6d28e06..e6e94ae 100644 --- a/Interface/List.lua +++ b/Interface/List.lua @@ -375,11 +375,26 @@ function private.InitializeListFrame() if parent_entry then if parent_entry ~= entry then - entry.parent = parent_entry - entry.recipe_id = parent_entry.recipe_id - entry.acquire_id = parent_entry.acquire_id - entry.location_id = parent_entry.location_id - entry.npc_id = parent_entry.npc_id + local recipe_id = parent_entry.recipe_id + local acquire_id = parent_entry.acquire_id + local location_id = parent_entry.location_id + local npc_id = parent_entry.npc_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_id + end + + if npc_id then + entry.npc_id = npc_id + end else addon:Debug("Attempting to parent an entry to itself.") end -- 1.7.9.5