diff Core.lua @ 162:8a525473f8e2

Backed out changeset: 34e22d3cd73e Fix was ineffective.
author Zerotorescue
date Mon, 19 Dec 2011 13:54:48 +0100
parents 34e22d3cd73e
children 86d9e008b0ad
line wrap: on
line diff
--- a/Core.lua	Mon Dec 19 13:30:59 2011 +0100
+++ b/Core.lua	Mon Dec 19 13:54:48 2011 +0100
@@ -440,15 +440,10 @@
 		self.cbOpenAll:SetChecked(false);
 	end
 	
-	hasOpenedMailAlready = nil;
-	mailboxEmptySoundPlayed = nil;
-	mailboxEmptySoundPlayedThisVisit = nil;
-	
 	if IsShiftKeyDown() then
 		self:Print(L["|cffff0000Disabling|r automatic opening of mail, shift key was down when opening the mailbox."]);
 		
 		AutoOpenMail = false;
-		hasOpenedMailAlready = true;
 		self.cbOpenAll:SetChecked(false);
 	end
 	
@@ -476,6 +471,10 @@
 		end
 	end
 	
+	hasOpenedMailAlready = nil;
+	mailboxEmptySoundPlayed = nil;
+	mailboxEmptySoundPlayedThisVisit = nil;
+	
 	self:Recheck();
 	
 	if self.db.profile.general.continueOpening then