From 1bb8aca9a80d10eb58dd3fb556337c06c661958b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 23 Mar 2010 01:16:43 -0400 Subject: [PATCH] Actually fix ticket 962 - for real this time. --- Frame.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Frame.lua b/Frame.lua index ce595d4..2d156ff 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1048,7 +1048,7 @@ do end if self.profession ~= prev_profession then - self.prev_profession = prev_profession + self.prev_profession = self.profession end self.mode_button:ChangeTexture(SORTED_PROFESSIONS[self.profession].texture) end @@ -3954,18 +3954,16 @@ function addon:DisplayFrame() ARL_DD_Sort.initialize = ARL_DD_Sort_Initialize -- Initialize dropdown - MainPanel:UpdateTitle() - MainPanel.scroll_frame:Update(false, false) - MainPanel:Show() - - -- Set the search text to the last searched text or the global default string for the search box - -- We should think about either preserving the search everytime arl is open or we clear it completely - pompachomp local editbox = MainPanel.search_editbox if MainPanel.profession ~= MainPanel.prev_profession then editbox.prev_search = nil end editbox:SetText(editbox.prev_search or L["SEARCH_BOX_DESC"]) + + MainPanel:UpdateTitle() + MainPanel.scroll_frame:Update(false, false) + MainPanel:Show() end -------------------------------------------------------------------------------- -- 1.7.9.5