Commit b5b0880f authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Merge remote-tracking branch 'origin/release/21.04'

parents 1971905b 3b5b171e
Pipeline #60214 passed with stage
in 38 minutes and 42 seconds
...@@ -397,7 +397,7 @@ bool ViewerPrivate::deleteAttachment(KMime::Content *node, bool showWarning) ...@@ -397,7 +397,7 @@ bool ViewerPrivate::deleteAttachment(KMime::Content *node, bool showWarning)
KMime::Message *modifiedMessage = mNodeHelper->messageWithExtraContent(mMessage.data()); KMime::Message *modifiedMessage = mNodeHelper->messageWithExtraContent(mMessage.data());
mMimePartTree->mimePartModel()->setRoot(modifiedMessage); mMimePartTree->mimePartModel()->setRoot(modifiedMessage);
mMessageItem.setPayloadFromData(modifiedMessage->encodedContent()); mMessageItem.setPayloadFromData(mMessage->encodedContent());
auto job = new Akonadi::ItemModifyJob(mMessageItem, mSession); auto job = new Akonadi::ItemModifyJob(mMessageItem, mSession);
job->disableRevisionCheck(); job->disableRevisionCheck();
connect(job, &KJob::result, this, &ViewerPrivate::itemModifiedResult); connect(job, &KJob::result, this, &ViewerPrivate::itemModifiedResult);
......
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