Commit d094caa9 authored by Sandro Knauß's avatar Sandro Knauß 🐝
Browse files

MessageViewer: Viewer add setFolderIdentity.

To determine the idetity for a mail correctly we need to know the
current folder identity.
parent 3e44d5a1
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
set(PIM_VERSION "5.16.41")
set(PIM_VERSION "5.16.42")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -773,4 +773,10 @@ void Viewer::setIdentityManager(KIdentityManagement::IdentityManager *ident)
d->setIdentityManager(ident);
}
void Viewer::setFolderIdentity(uint folderIdentity)
{
Q_D(Viewer);
d->setFolderIdentity(folderIdentity);
}
}
......@@ -346,6 +346,7 @@ public:
void showDevelopmentTools();
void setIdentityManager(KIdentityManagement::IdentityManager *ident);
void setFolderIdentity(uint folderIdentity);
Q_SIGNALS:
void moveMessageToTrash();
void pageIsScrolledToBottom(bool);
......
......@@ -3174,3 +3174,8 @@ void ViewerPrivate::setIdentityManager(KIdentityManagement::IdentityManager* ide
{
mIdentityManager = ident;
}
void MessageViewer::ViewerPrivate::setFolderIdentity(uint folderIdentity)
{
mFolderIdentity = folderIdentity;
}
......@@ -434,6 +434,7 @@ public:
Q_REQUIRED_RESULT bool isAutocryptEnabled(const KMime::Content *content);
void setIdentityManager(KIdentityManagement::IdentityManager *ident);
void setFolderIdentity(uint folderIdentity);
private Q_SLOTS:
void slotActivatePlugin(MessageViewer::ViewerPluginInterface *interface);
......@@ -664,6 +665,7 @@ public:
bool mShowEncryptionDetails = false;
bool mForceEmoticons = true;
int mRecursionCountForDisplayMessage = 0;
uint mFolderIdentity = 0;
KMime::Content *mCurrentContent = nullptr;
KMime::Content *mMessagePartNode = nullptr;
QString mMessagePath;
......
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