summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-13 22:03:16 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-14 00:45:05 +0300
commitb524feea03eb2594ac17d895026aad5f61fc66e9 (patch)
treea322b0b92f5716d75a7d73f7a982909d3489f44f /src/gui
parent0a49b13232b36121bb19c35053bbca6eccd17ee8 (diff)
downloadplus-b524feea03eb2594ac17d895026aad5f61fc66e9.tar.gz
plus-b524feea03eb2594ac17d895026aad5f61fc66e9.tar.bz2
plus-b524feea03eb2594ac17d895026aad5f61fc66e9.tar.xz
plus-b524feea03eb2594ac17d895026aad5f61fc66e9.zip
Add expired field into mailmessage.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/mailmessage.h4
-rw-r--r--src/gui/windows/mailwindow.cpp5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/mailmessage.h b/src/gui/mailmessage.h
index f28c4bf3d..fb8ec9130 100644
--- a/src/gui/mailmessage.h
+++ b/src/gui/mailmessage.h
@@ -39,7 +39,8 @@ struct MailMessage final
expireTime(0),
money(0),
type(MailMessageType::Text),
- read(false)
+ read(false),
+ expired(false)
{
}
@@ -55,5 +56,6 @@ struct MailMessage final
int64_t money;
MailMessageType::Type type;
bool read;
+ bool expired;
};
#endif // GUI_MAILMESSAGE_H
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index cacd9af43..6240792b4 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -194,6 +194,11 @@ std::string MailWindow::getMailHeader(const MailMessage *const message) const
if (mUseMail2)
{
std::string header;
+ if (message->expired)
+ {
+ // TRANSLATORS: expired mail message prefix
+ header = _("(expired)");
+ }
if (message->read)
header.append(" ");
else