Don't store invalid format

wilder
Laurent Montel 6 years ago
parent 40afce5fd4
commit c38b55738e
  1. 6
      src/collectionpage/collectionviewwidget.cpp

@ -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()

Loading…
Cancel
Save