comparison Core.lua @ 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 debff5ad3de4
children 14fdf327124e
comparison
equal deleted inserted replaced
142:5736b1f2c6b0 143:2af0f77dbae0
448 local AHAddon = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions", true) or LibStub("AceAddon-3.0"):GetAddon("AuctionProfitMaster", true); 448 local AHAddon = LibStub("AceAddon-3.0"):GetAddon("ZeroAuctions", true) or LibStub("AceAddon-3.0"):GetAddon("AuctionProfitMaster", true);
449 if AHAddon then 449 if AHAddon then
450 local QAMail = AHAddon:GetModule("Mail", true); 450 local QAMail = AHAddon:GetModule("Mail", true);
451 451
452 if QAMail then 452 if QAMail then
453 -- Hide the open all button 453 if QAMail.massOpening then
454 QAMail.massOpening:Hide(); 454 -- Hide the open all button
455 -- Hide the x mail remaining text 455 QAMail.massOpening:Hide();
456 QAMail.totalMail:Hide(); 456 end
457 if QAMail.totalMail then
458 -- Hide the x mail remaining text
459 QAMail.totalMail:Hide();
460 end
457 end 461 end
458 end 462 end
459 end 463 end
460 464
461 hasOpenedMailAlready = nil; 465 hasOpenedMailAlready = nil;