Commit 1c9c6886 authored by Jonathan Marten's avatar Jonathan Marten

Disconnect BroadcastStatus from the status bar to avoid crash on exit

BUG:387177

Differential Revision: https://phabricator.kde.org/D11256
parent c7f7d6bd
......@@ -91,6 +91,10 @@ KMMainWin::KMMainWin(QWidget *)
KMMainWin::~KMMainWin()
{
// Avoids a crash if there are any Akonadi jobs running, which may
// attempt to display a status message when they are killed.
disconnect(KPIM::BroadcastStatus::instance(), &KPIM::BroadcastStatus::statusMsg, this, nullptr);
KConfigGroup grp(KMKernel::self()->config()->group("Main Window"));
saveMainWindowSettings(grp);
KMKernel::self()->config()->sync();
......
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