Added avatar placeholder
icon-m-profile.svg being used if no avatar image can be loaded
This commit is contained in:
parent
314b335ef0
commit
9d1846ec19
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ BackgroundItem {
|
||||||
visible: true
|
visible: true
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
if (avatar.status === Image.Error)
|
if (avatar.status === Image.Error)
|
||||||
source = "image://theme/icon-m-person?" + (pressed
|
source = "../../images/icon-m-profile.svg?" + (pressed
|
||||||
? Theme.highlightColor
|
? Theme.highlightColor
|
||||||
: Theme.primaryColor)
|
: Theme.primaryColor)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue