Quantcast

When switching professions and the TradeSkill frame isn't open, call CloseTradeSkill() instead of hiding the TradeSkill frame. Fixes ticket #1006 - thanks Vyraal!

James D. Callahan III [06-24-10 - 21:56]
When switching professions and the TradeSkill frame isn't open, call CloseTradeSkill() instead of hiding the TradeSkill frame. Fixes ticket #1006 - thanks Vyraal!
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 0c4f3f3..2b3f1cf 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -1529,7 +1529,7 @@ MainPanel.mode_button:SetScript("OnClick",
 					addon:Scan()

 					if not is_shown then
-						trade_frame:Hide()
+						CloseTradeSkill()
 					end
 				end)