Commit 0ad5a7ac authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 419948 - Changing an individual folder to "Prefer HTML" or to "Prefer...

Fix Bug 419948 - Changing an individual folder to "Prefer HTML" or to "Prefer Plain Text" is not remembered after restarting KMail

FIXED-IN: 5.14.0
BUG: 419948
parent 0bb891f1
......@@ -624,19 +624,10 @@ void KMMainWidget::readFolderConfig()
//-----------------------------------------------------------------------------
void KMMainWidget::writeFolderConfig()
{
if (mCurrentCollection.isValid()) {
KSharedConfig::Ptr config = KMKernel::self()->config();
KConfigGroup group(config, MailCommon::FolderSettings::configGroupName(mCurrentCollection));
if (mFolderHtmlLoadExtPreference) {
group.writeEntry("htmlLoadExternalOverride", mFolderHtmlLoadExtPreference);
} else {
group.deleteEntry("htmlLoadExternalOverride");
}
if (mFolderDisplayFormatPreference == MessageViewer::Viewer::UseGlobalSetting) {
group.deleteEntry("displayFormatOverride");
} else {
group.writeEntry("displayFormatOverride", static_cast<int>(mFolderDisplayFormatPreference));
}
if (mCurrentFolderSettings) {
mCurrentFolderSettings->setFolderHtmlLoadExtPreference(mFolderHtmlLoadExtPreference);
mCurrentFolderSettings->setFormatMessage(mFolderDisplayFormatPreference);
mCurrentFolderSettings->writeConfig();
}
}
......
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