Commit 06848bf8 authored by Nicolas Fella's avatar Nicolas Fella Committed by Laurent Montel
Browse files

Don't access KMKernel when destructing KMReaderMainWin

At this point the kernel is already deleted by KMailPart, so we are accessing a nullptr.

Since we know which config we want to access we can do that directly.

BUG: 420669
parent e7e7cd32
Pipeline #119840 passed with stage
in 7 minutes and 37 seconds
......@@ -114,7 +114,7 @@ void KMReaderMainWin::initKMReaderMainWin()
KMReaderMainWin::~KMReaderMainWin()
{
KConfigGroup grp(KMKernel::self()->config()->group("Separate Reader Window"));
KConfigGroup grp(KSharedConfig::openConfig(QStringLiteral("kmail2rc"))->group("Separate Reader Window"));
saveMainWindowSettings(grp);
}
......
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