Verified Commit 4069cdd4 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[lookandfeel] Fix access to undefined needsPassword role with kscreenlocker

When running this:

    ~/kde/usr/lib/libexec/kscreenlocker_greet --testing --theme ~/kde/src/plasma-workspace/lookandfeel

it used to generate error like this:

    /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:61:9: Unable to assign [undefined] to bool

Because not every users list model provides all the properties that
delegate expected.
parent 4f158b1e
Pipeline #183542 passed with stage
in 8 minutes and 8 seconds
......@@ -57,8 +57,8 @@ ListView {
avatarPath: model.icon || ""
iconSource: model.iconName || "user-identity"
fontSize: view.fontSize
needsPassword: model.needsPassword !== undefined ? model.needsPassword : true
vtNumber: model.vtNumber
needsPassword: model.needsPassword
name: {
const displayName = model.realName ||
Supports Markdown
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