From 684fd12d0bf9bd3c856a4ed5062a9534bbc9e9f2 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 15 Apr 2009 20:53:28 +0000 Subject: [PATCH] Fixed an error that could occur when mousing over empty slots in the spellbook --- CliqueOptions.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index 20d798e..81afd53 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -30,9 +30,14 @@ function Clique:OptionsOnLoad() button:SetScript("OnClick", onclick) button:SetScript("OnEnter", function(self) local parent = self:GetParent() - SpellButton_OnEnter(parent) + if parent:IsEnabled() == 1 then + SpellButton_OnEnter(parent) + else + button:GetHighlightTexture():Hide() + end end) button:SetScript("OnLeave", onleave) + button:Hide() self.spellbuttons[i] = button end -- 1.7.9.5