loot: fix unknown hover frame errors

This commit is contained in:
shagu
2016-11-06 20:34:27 +01:00
parent 1712b3a098
commit 3752ff3dd7
+6 -2
View File
@@ -41,13 +41,17 @@ pfUI:RegisterModule("loot", function ()
GameTooltip:SetLootItem(this:GetID())
CursorUpdate()
end
this.hover:Show()
if this.hover then
this.hover:Show()
end
end)
frame:SetScript("OnLeave", function()
GameTooltip:Hide()
ResetCursor()
this.hover:Hide()
if this.hover then
this.hover:Hide()
end
end)
frame.ficon = CreateFrame("Frame", "pfLootButtonIcon", frame)