Changeset View
Changeset View
Standalone View
Standalone View
src/kmmainwin.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
86 | 86 | | |||
87 | mKMMainWidget->updateQuickSearchLineText(); | 87 | mKMMainWidget->updateQuickSearchLineText(); | ||
88 | mHideMenuBarAction->setChecked(KMailSettings::self()->showMenuBar()); | 88 | mHideMenuBarAction->setChecked(KMailSettings::self()->showMenuBar()); | ||
89 | slotToggleMenubar(true); | 89 | slotToggleMenubar(true); | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | KMMainWin::~KMMainWin() | 92 | KMMainWin::~KMMainWin() | ||
93 | { | 93 | { | ||
94 | // Avoids a crash if there are any Akonadi jobs running, which may | ||||
95 | // attempt to display a status message when they are killed. | ||||
96 | disconnect(KPIM::BroadcastStatus::instance(), &KPIM::BroadcastStatus::statusMsg, this, nullptr); | ||||
97 | | ||||
94 | KConfigGroup grp(KMKernel::self()->config()->group("Main Window")); | 98 | KConfigGroup grp(KMKernel::self()->config()->group("Main Window")); | ||
95 | saveMainWindowSettings(grp); | 99 | saveMainWindowSettings(grp); | ||
96 | KMKernel::self()->config()->sync(); | 100 | KMKernel::self()->config()->sync(); | ||
97 | } | 101 | } | ||
98 | 102 | | |||
99 | KMMainWidget *KMMainWin::mainKMWidget() const | 103 | KMMainWidget *KMMainWin::mainKMWidget() const | ||
100 | { | 104 | { | ||
101 | return mKMMainWidget; | 105 | return mKMMainWidget; | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |