Fixes yet another KPluginMetadata regression.
Details
Details
I'm getting tired of this, really.
Does this need to go to 5.8 or master?
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Master
and we need to be fixing KPluginMetaData::value() to return something for the bool case for Plamsa 5.8 or older
like I did for stringlists just now in https://git.reviewboard.kde.org/r/129770/
Comment Actions
Return "true" and "false" strings maybe? I *think* QVariant is even smart enough to case those to the respective bool values
Comment Actions
Seems it can:
inline bool qt_convertToBool(const QVariant::Private *const d)
{
TInput str = v_cast<TInput>(d)->toLower(); return !(str.isEmpty() || str == LiteralWrapper("0") || str == LiteralWrapper("false"));
}
I'll make the kcoreaddons change.
Comment Actions
https://git.reviewboard.kde.org/r/129771/
and lets ship this in master, as it's more correct than the current code.