Commit 0ae3bf54 authored by Volker Krause's avatar Volker Krause
Browse files

Make sure MessageViewerSettings::self() is called before the base class one

Summary:
This is a dirty workaround and fixes akonadiconsole crashing on startup.
A proper solution would need a larger review of the settings handling
here I guess, ideally getting rid of the base-class self() method to
prevent this from happening in the first place.

Reviewers: mlaurent, dfaure

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28588
parent 26077419
......@@ -23,6 +23,10 @@ using namespace MessageViewer;
DKIMCheckPolicy::DKIMCheckPolicy()
{
// HACK make sure we create an instance of MessageViewerSettings, rather than
// have the below static functions call self() of the base class, which will
// assert in subsequent use of MessageViewerSettings
MessageViewer::MessageViewerSettings::self();
mRsaSha1Policy = MessageViewer::MessageViewerSettings::policyRsaSha1();
mVerifySignatureWhenOnlyTest = MessageViewer::MessageViewerSettings::verifySignatureWhenOnlyTest();
mSaveDkimResult = MessageViewer::MessageViewerSettings::saveDkimResult();
......
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