Commit c38b5573 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't store invalid format

parent 40afce5f
Pipeline #35597 passed with stage
in 40 minutes and 42 seconds
......@@ -184,8 +184,10 @@ void CollectionViewWidget::save(Akonadi::Collection &col)
} else {
qCDebug(MAILCOMMON_LOG) << "No settings defined";
}
mFolderCollection->setFormatMessage(formatMessage);
mFolderCollection->writeConfig();
if (formatMessage != MessageViewer::Viewer::Unknown) {
mFolderCollection->setFormatMessage(formatMessage);
mFolderCollection->writeConfig();
}
}
void CollectionViewWidget::slotSelectFolderAggregation()
......
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