changeset 143:2af0f77dbae0

Fixed an error when QA?s mass opening is not available (such as for ZeroAuctions).
author Zerotorescue
date Sat, 19 Feb 2011 15:20:20 +0100
parents 5736b1f2c6b0
children 4bc135295630
files Core.lua
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Sat Jan 29 22:32:35 2011 +0100
+++ b/Core.lua	Sat Feb 19 15:20:20 2011 +0100
@@ -450,10 +450,14 @@
 			local QAMail = AHAddon:GetModule("Mail", true);
 			
 			if QAMail then
-				-- Hide the open all button
-				QAMail.massOpening:Hide();
-				-- Hide the x mail remaining text
-				QAMail.totalMail:Hide();
+				if QAMail.massOpening then
+					-- Hide the open all button
+					QAMail.massOpening:Hide();
+				end
+				if QAMail.totalMail then
+					-- Hide the x mail remaining text
+					QAMail.totalMail:Hide();
+				end
 			end
 		end
 	end