Commit c77fdea7 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Set MessageViewer::Viewer::setFolderIdentity when displaying an email.

parent 9ff7d5c2
......@@ -25,6 +25,7 @@
#include <PimCommon/BroadcastStatus>
#include "kmcommands.h"
#include <MailCommon/SendMdnHandler>
#include <MailCommon/MailUtil>
#include <QVBoxLayout>
#include <MessageViewer/HeaderStrategy>
#include <MessageViewer/MarkMessageReadHandler>
......@@ -677,11 +678,13 @@ void KMReaderWin::clear(bool force)
void KMReaderWin::setMessage(const Akonadi::Item &item, MimeTreeParser::UpdateMode updateMode)
{
qCDebug(KMAIL_LOG) << Q_FUNC_INFO << parentWidget();
mViewer->setFolderIdentity(MailCommon::Util::folderIdentity(item));
mViewer->setMessageItem(item, updateMode);
}
void KMReaderWin::setMessage(const KMime::Message::Ptr &message)
{
mViewer->setFolderIdentity(0);
mViewer->setMessage(message);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment