From a39ad1793cee64db177baaef193b39c4e30daea2 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 28 May 2010 08:35:52 -0400 Subject: [PATCH] Disable entry and state buttons in ListFrame:ClearLines(), and enable those that are shown in ListFrame:Update() - fixes issue of highlight texture showing when not appropriate. --- Frame.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Frame.lua b/Frame.lua index 70f308c..a230f86 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3238,11 +3238,13 @@ do entry:SetText("") entry:SetScript("OnEnter", nil) entry:SetScript("OnLeave", nil) + entry:Disable() state.string_index = 0 state:Hide() state:SetScript("OnEnter", nil) state:SetScript("OnLeave", nil) + state:Disable() state:ClearAllPoints() end @@ -3351,8 +3353,10 @@ do cur_state.string_index = string_index cur_state:SetScript("OnEnter", Button_OnEnter) cur_state:SetScript("OnLeave", Button_OnLeave) + cur_state:Enable() else cur_state:Hide() + cur_state:Disable() end local cur_container = cur_state.container @@ -3368,6 +3372,7 @@ do cur_button:SetText(cur_entry.text) cur_button:SetScript("OnEnter", Bar_OnEnter) cur_button:SetScript("OnLeave", Bar_OnLeave) + cur_button:Enable() button_index = button_index + 1 string_index = string_index + 1 -- 1.7.9.5