Commit 58a04cdb authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix use of outdated key X-KDE-PluginInfo-Name, is now KPlugin: { Id: }

parent c8cd8b79
...@@ -127,7 +127,8 @@ void KoPluginLoader::load(const QString & serviceType, const QString & versionSt ...@@ -127,7 +127,8 @@ void KoPluginLoader::load(const QString & serviceType, const QString & versionSt
QObject *plugin = factory->create<QObject>(owner ? owner : this, QVariantList()); QObject *plugin = factory->create<QObject>(owner ? owner : this, QVariantList());
if (plugin) { if (plugin) {
QJsonObject json = loader->metaData().value("MetaData").toObject(); QJsonObject json = loader->metaData().value("MetaData").toObject();
const QString pluginName = json.value("X-KDE-PluginInfo-Name").toString(); json = json.value("KPlugin").toObject();
const QString pluginName = json.value("Id").toString();
whiteList << pluginName; whiteList << pluginName;
// qDebug() << "Loaded plugin" << loader->fileName() << owner; // qDebug() << "Loaded plugin" << loader->fileName() << owner;
if (!owner) { if (!owner) {
......
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