diff --git a/Postal.lua b/Postal.lua index 527a131..ce15388 100644 --- a/Postal.lua +++ b/Postal.lua @@ -243,6 +243,7 @@ function Postal:OnEnable() -- hack to avoid automatic subject setting/button enabling SendMailMailButton:Hide() SendMailSubjectEditBox:Hide() + SendMailSubjectEditBox.SetText = function(self, text) PostalSubjectEditBox:SetText(text) end SendMailNameEditBox:SetScript('OnTabPressed', function() PostalSubjectEditBox:SetFocus() end) @@ -534,18 +535,6 @@ function Postal:SendMail() subject = subject..format(' (Part %d of %d)', this.total - getn(this.queue), this.total) end - if this.first then - this.first = false - - if this.money then - if this.cod then - SetSendMailCOD(this.money) - else - SetSendMailMoney(this.money) - end - end - end - if item then if GetSendMailItem() and PostalFrame.mailbag and PostalFrame.mailitem then -- There's already an item in the slot @@ -571,6 +560,18 @@ function Postal:SendMail() end end + if this.first then + this.first = false + + if this.money then + if this.cod then + SetSendMailCOD(this.money) + else + SetSendMailMoney(this.money) + end + end + end + SendMail(this.to, subject, this.body) return end diff --git a/Postal.xml b/Postal.xml index b43bf6b..e9be3f5 100644 --- a/Postal.xml +++ b/Postal.xml @@ -187,27 +187,27 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> -