X-Purpose-PluginTypes is a StringList, not a String. Use an appropriate way of reading it.
Details
Details
- Reviewers
apol aacid - Commits
- R495:3d3af03052d0: Fix warning when reading plugin metadata
Share file in Dolphin. Don't get org.kde.kcoreaddons: Expected JSON property "X-Purpose-PluginTypes" to be a single string. but it is a stringlist anymore.
Diff Detail
Diff Detail
- Repository
- R495 Purpose Library
- Branch
- warning
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 13092 Build 13110: arc lint + arc unit
Comment Actions
It is the only place I found where KPluginMetaData.value is called on a list.
The other places where .value() is used is on QJsonObjects which handle lists just fine
Comment Actions
Right, i see the point now, would make more sense to change the line to
qDebug() << "discarding" << meta.name() << obj.value(QStringLiteral("X-Purpose-PluginTypes")).toArray() << "doesn't contain" << m_pluginType;
?