Quantcast

Fix for clicking on empty line

Ackis [11-25-08 - 21:20]
Fix for clicking on empty line
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index c4ed730..7590979 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -2400,7 +2400,7 @@ function addon.RecipeItem_OnClick(button)
 	addon:Print(button)

 	-- Don't do anything if they've clicked on an empty button
-	if (clickedIndex ~= nil) then
+	if (clickedIndex ~= nil) or (clickedIndex ~= 0) then

 		local isRecipe = DisplayStrings[clickedIndex].IsRecipe
 		local isExpanded = DisplayStrings[clickedIndex].IsExpanded