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) ...@@ -184,8 +184,10 @@ void CollectionViewWidget::save(Akonadi::Collection &col)
} else { } else {
qCDebug(MAILCOMMON_LOG) << "No settings defined"; qCDebug(MAILCOMMON_LOG) << "No settings defined";
} }
mFolderCollection->setFormatMessage(formatMessage); if (formatMessage != MessageViewer::Viewer::Unknown) {
mFolderCollection->writeConfig(); mFolderCollection->setFormatMessage(formatMessage);
mFolderCollection->writeConfig();
}
} }
void CollectionViewWidget::slotSelectFolderAggregation() 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