Quantcast

5.4.188

Munglunch [01-13-15 - 19:39]
5.4.188
Filename
Interface/AddOns/SVUI/packages/override/components/loot.lua
diff --git a/Interface/AddOns/SVUI/packages/override/components/loot.lua b/Interface/AddOns/SVUI/packages/override/components/loot.lua
index 0ae6332..e637805 100644
--- a/Interface/AddOns/SVUI/packages/override/components/loot.lua
+++ b/Interface/AddOns/SVUI/packages/override/components/loot.lua
@@ -104,7 +104,11 @@ SVUI_LootFrame:SetToplevel(true);
 SVUI_LootFrame.title = SVUI_LootFrame:CreateFontString(nil,'OVERLAY');
 SVUI_LootFrame.title:SetPoint('BOTTOMLEFT',SVUI_LootFrame,'TOPLEFT',0,1);
 SVUI_LootFrame.slots = {};
-SVUI_LootFrame:SetScript("OnHide", Loot_OnHide);
+SVUI_LootFrame:Hide();
+SVUI_LootFrame:SetScript("OnHide", function(self)
+	SV:StaticPopup_Hide("CONFIRM_LOOT_DISTRIBUTION");
+	CloseLoot()
+end);
 --[[
 ##########################################################
 LOOTING
@@ -119,11 +123,6 @@ local DoDaRoll = function(self)
 	RollOnLoot(self.parent.rollID, self.rolltype)
 end

-local Loot_OnHide = function(self)
-	SV:StaticPopup_Hide("CONFIRM_LOOT_DISTRIBUTION");
-	CloseLoot()
-end
-
 local LootRoll_OnLeave = function(self)
 	GameTooltip:Hide()
 end