summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-26 17:42:49 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-26 17:42:49 +0300
commit19c49d794657f87cf07790b3fad6dae09f8005df (patch)
tree69c211cd5e88e7c42211ee232a42b6fe104c8425 /src/net/eathena/mailrecv.cpp
parente72b6ef50fbfe22d3c856e06db00d55643a4c148 (diff)
downloadManaVerse-19c49d794657f87cf07790b3fad6dae09f8005df.tar.gz
ManaVerse-19c49d794657f87cf07790b3fad6dae09f8005df.tar.bz2
ManaVerse-19c49d794657f87cf07790b3fad6dae09f8005df.tar.xz
ManaVerse-19c49d794657f87cf07790b3fad6dae09f8005df.zip
Show/hide get attach button in mail view window based on attached items and money.
Diffstat (limited to 'src/net/eathena/mailrecv.cpp')
-rw-r--r--src/net/eathena/mailrecv.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp
index ac638b300..d8897f38c 100644
--- a/src/net/eathena/mailrecv.cpp
+++ b/src/net/eathena/mailrecv.cpp
@@ -26,6 +26,7 @@
#include "gui/mailmessage.h"
+#include "gui/windows/mailviewwindow.h"
#include "gui/windows/mailwindow.h"
#include "net/mailhandler.h"
@@ -111,6 +112,9 @@ void MailRecv::processReadMail(Net::MessageIn &msg)
msg.readUInt8("zero");
mail->strTime = timeToStr(mail->time);
mailWindow->showMessage(mail, mail->itemId != 0 ? 1 : 0);
+ // +++ here need add item into item container
+ if (mailViewWindow)
+ mailViewWindow->updateItems();
}
void MailRecv::processGetAttachment(Net::MessageIn &msg)