Verified Commit 53d6963e authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/userswitcher] Fix null parent / undefined property access

An oversight in previous commit. Declaring the highlight component as a
property avoid automatic reparenting to an enclosing Item.

Amends ba5a25fa.
parent ba5a25fa
Pipeline #178144 passed with stage
in 2 minutes and 36 seconds
......@@ -132,12 +132,12 @@ Item {
id: sessionsModel
PlasmaExtras.Highlight {
property Item delegateHighlight: PlasmaExtras.Highlight {
id: delegateHighlight
parent: null
width: parent ? parent.width : undefined
height: parent ? parent.height : undefined
hovered: parent.containsMouse
hovered: parent && parent.containsMouse
z: -1 // otherwise it shows ontop of the icon/label and tints them slightly
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