Fix some msg status inconsistencies.

This commit is contained in:
Martin Rotter 2016-08-19 11:24:12 +02:00
parent 0c0c639678
commit 9eb2731093

View File

@ -155,7 +155,7 @@ void MessagePreviewer::markMessageAsReadUnread(RootItem::ReadStatus read) {
m_root->getParentServiceRoot()->onAfterSetMessagesRead(m_root.data(),
QList<Message>() << m_message,
read);
m_message.m_isRead = true;
m_message.m_isRead = read == RootItem::Read;
emit markMessageRead(m_message.m_id, read);
updateButtons();