Fix Plasma::knownLanguages
There was a logic error meaning this did the exact opposite of what it should have been doing. Fortunately no-one calls it anywhere. REVIEW: 128959
This commit is contained in:
parent
580af56fe5
commit
16b478a827
@ -66,8 +66,8 @@ QStringList knownLanguages(Types::ComponentTypes types)
|
||||
|
||||
foreach (const auto &plugin, plugins) {
|
||||
const QStringList componentTypes = KPluginMetaData::readStringList(plugins.first().rawData(), QStringLiteral("X-Plasma-ComponentTypes"));
|
||||
if (((types & Types::AppletComponent) && !componentTypes.contains(QStringLiteral("Applet")))
|
||||
||((types & Types::DataEngineComponent) && !componentTypes.contains(QStringLiteral("DataEngine")))) {
|
||||
if (((types & Types::AppletComponent) && componentTypes.contains(QStringLiteral("Applet")))
|
||||
||((types & Types::DataEngineComponent) && componentTypes.contains(QStringLiteral("DataEngine")))) {
|
||||
languages << plugin.value(QStringLiteral("X-Plasma-API"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user