From e459d8ca4c28db2ed7e58d7885535b9c475de6a0 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Mon, 27 Feb 2012 08:14:04 -0500 Subject: [PATCH] -small fix to prevent actions being done to items while the mailbox window is opened. --- xanMortarPestle.lua | 1 + xanMortarPestle.toc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xanMortarPestle.lua b/xanMortarPestle.lua index c7979f2..0410e5e 100644 --- a/xanMortarPestle.lua +++ b/xanMortarPestle.lua @@ -142,6 +142,7 @@ function frm:PLAYER_LOGIN() if InCombatLockdown() then return end --if were in combat then exit if not IsAltKeyDown() then return end --if the modifier is not down then exit if CursorHasItem() then return end --if the mouse has an item then exit + if MailFrame:IsVisible() then return end --don't continue if the mailbox is open. For addons such as Postal. local item, link = self:GetItem() --make sure we have an item to work with diff --git a/xanMortarPestle.toc b/xanMortarPestle.toc index e0f63d5..ac83629 100644 --- a/xanMortarPestle.toc +++ b/xanMortarPestle.toc @@ -2,7 +2,7 @@ ## Title: xanMortarPestle ## Notes: Mill/Prospect/Disenchant using (Alt + Right-Click) on an item. ## Author: Xruptor -## Version: 2.0 +## Version: 2.1 ## SavedVariables: XMP_DB xanMortarPestle.lua -- 1.7.9.5