-small fix to prevent actions being done to items while the mailbox window is opened.
Xruptor [02-27-12 - 13:14]
-small fix to prevent actions being done to items while the mailbox window is opened.
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