Quantcast

Fixed bug where if you had a search filter set when you close ARL and open it up again the search box text wouldn't show the search filter still in progress. Fixes ticket 833

pompachomp [11-20-09 - 23:32]
Fixed bug where if you had a search filter set when you close ARL and open it up again the search box text wouldn't show the search filter still in progress.  Fixes ticket 833
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index ce5ecf1..069662d 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -4219,9 +4219,10 @@ function addon:DisplayFrame()
 	MainPanel:Show()
 	SetProgressBar()

-	-- Make sure to reset search gui elements
-	ARL_LastSearchedText = ""
-	ARL_SearchText:SetText(L["SEARCH_BOX_DESC"])
+	-- 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
+	ARL_SearchText:SetText(ARL_LastSearchedText  or L["SEARCH_BOX_DESC"])
+
 end

 -------------------------------------------------------------------------------