loot: cancel loot when closing the lootframe

This commit is contained in:
shagu
2016-11-15 21:05:18 +01:00
parent ffb79f05da
commit 022b04a38d
+5
View File
@@ -100,6 +100,11 @@ pfUI:RegisterModule("loot", function ()
return frame
end
pfUI.loot:SetScript("OnHide", function()
StaticPopup_Hide("CONFIRM_LOOT_DISTRIBUTION")
CloseLoot()
end)
pfUI.loot:SetScript("OnEvent", function()
local maxrarity, maxwidth = 0, 0
if event == "OPEN_MASTER_LOOT_LIST" then