From 56cd703a9aaff57b16b9d466a5553e47b75e2f7b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 18 Jun 2010 05:55:01 -0400 Subject: [PATCH] Make sure the scroll bar's OnValueChanged script doesn't try to update the list while the list is being initialized. Fixes ticket #1011. --- Frame.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 2439a4c..4e351c5 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2908,7 +2908,10 @@ do ScrollUpButton:Enable() ScrollDownButton:Enable() end - ListFrame:Update(nil, true) + + if not ListFrame.initializing then + ListFrame:Update(nil, true) + end end) local function Button_OnEnter(self) @@ -3102,6 +3105,8 @@ do end function ListFrame:Initialize(expand_mode) + self.initializing = true + for i = 1, #self.entries do ReleaseTable(self.entries[i]) end @@ -3140,6 +3145,7 @@ do else progress_bar.text:SetFormattedText("%s", L["NOT_YET_SCANNED"]) end + self.initializing = nil end -- Reset the current buttons/lines -- 1.7.9.5