Quantcast

Changed checking of the editbox text when there are no entries.

James D. Callahan III [03-29-10 - 03:55]
Changed checking of the editbox text when there are no entries.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index e859e7a..d434a79 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2999,6 +2999,7 @@ do
 				addon.db.profile.addonversion = addon.version
 				showpopup = true
 			end
+			local editbox_text = MainPanel.search_editbox:GetText()

 			if Player.recipes_total == 0 then
 				if showpopup then
@@ -3016,7 +3017,7 @@ do
 				if showpopup then
 					_G.StaticPopup_Show("ARL_ALLEXCLUDED")
 				end
-			elseif MainPanel.search_editbox:GetText() ~= "" then
+			elseif editbox_text ~= "" and editbox_text ~= _G.SEARCH then
 				_G.StaticPopup_Show("ARL_SEARCHFILTERED")
 			else
 				addon:Print(L["NO_DISPLAY"])