wilder-work
Montel Laurent 10 years ago
parent 9a5c77b1fb
commit b261dbaa09
  1. 18
      src/kmkernel.cpp

@ -1400,8 +1400,17 @@ void KMKernel::cleanup(void)
the_msgSender = Q_NULLPTR;
delete the_undoStack;
the_undoStack = Q_NULLPTR;
delete mConfigureDialog;
mConfigureDialog = Q_NULLPTR;
// do not delete, because mWin may point to an existing window
// delete mWin;
mWin = Q_NULLPTR;
KSharedConfig::Ptr config = KMKernel::config();
if (RecentAddresses::exists()) {
RecentAddresses::self(config.data())->save(config.data());
}
Akonadi::Collection trashCollection = CommonKernel->trashCollectionFolder();
if (trashCollection.isValid()) {
if (KMailSettings::self()->emptyTrashOnExit()) {
@ -1413,15 +1422,6 @@ void KMKernel::cleanup(void)
}
}
}
delete mConfigureDialog;
mConfigureDialog = Q_NULLPTR;
// do not delete, because mWin may point to an existing window
// delete mWin;
mWin = Q_NULLPTR;
if (RecentAddresses::exists()) {
RecentAddresses::self(config.data())->save(config.data());
}
}
void KMKernel::dumpDeadLetters()

Loading…
Cancel
Save