Quantcast

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.

James D. Callahan III [05-28-10 - 12:35]
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.
Filename
Frame.lua
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