Commit 011bb865 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to reset messageformat

parent 76d66318
......@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
set(PIM_VERSION "5.2.55")
set(PIM_VERSION "5.2.56")
set(MAILCOMMON_LIB_VERSION ${PIM_VERSION})
set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(MESSAGELIB_LIB_VERSION "5.2.46")
......
......@@ -101,6 +101,16 @@ void FolderCollection::clearCache()
fcMap.clear();
}
void FolderCollection::resetHtmlFormat()
{
QMutexLocker lock(&mapMutex);
QMap<Collection::Id, QSharedPointer<FolderCollection> >::const_iterator i = fcMap.constBegin();
while (i != fcMap.constEnd()) {
i.value()->setFormatMessage(MessageViewer::Viewer::UseGlobalSetting);
++i;
}
}
bool FolderCollection::isWriteConfig() const
{
return mWriteConfig;
......
......@@ -49,6 +49,7 @@ public:
static QString configGroupName(const Akonadi::Collection &col);
static void clearCache();
static void resetHtmlFormat();
bool isWriteConfig() const;
void setWriteConfig(bool 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