summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-07 05:48:32 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-07 05:48:51 (GMT)
commit3de6dfae970653a0dac5711aa7565bd210145554 (patch)
tree67739c01381f02aa1935936b22b1e5ab6b9b6a83
parent997a564063d492e5bbc3714689e1c6fe52064a01 (diff)
Fix plugin group name
-rw-r--r--messageviewer/src/viewerplugins/viewerpluginmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
index 6e81df9..ccc34f7 100644
--- a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
+++ b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
@@ -117,8 +117,9 @@ bool ViewerPluginManagerPrivate::initializePluginList()
KSharedConfigPtr config = KSharedConfig::openConfig(QStringLiteral("pimpluginsrc"));
QStringList enabledPlugins;
QStringList disabledPlugins;
- if (config->hasGroup("MessageViewer")) {
- KConfigGroup grp = config->group("MessageViewer");
+ const QString groupPluginName = QStringLiteral("PluginMessageViewer%1").arg(pluginName);
+ if (config->hasGroup(groupPluginName)) {
+ KConfigGroup grp = config->group(groupPluginName);
enabledPlugins = grp.readEntry(QStringLiteral("MessageViewerPluginsEnabled"), QStringList());
disabledPlugins = grp.readEntry(QStringLiteral("MessageViewerPluginsDisabled"), QStringList());
}