Skip to content
Snippets Groups Projects
Commit 1d2a9015 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: fix "Unknown Artist" is not shown in PlaylistDelegate

This is a delegate, it is inherent that `model` exists. Instead of
checking for model, check the existence of `artist` and its length.
parent d6be0506
No related branches found
No related tags found
1 merge request!5380qml: fix "Unknown Artist" is not shown in PlaylistDelegate
Pipeline #471195 passed with warnings with stage
in 19 minutes and 26 seconds
......@@ -219,7 +219,7 @@ T.ItemDelegate {
Layout.fillHeight: true
Layout.fillWidth: true
text: model?.artist ?? qsTr("Unknown Artist")
text: model.artist || qsTr("Unknown Artist")
color: theme.fg.primary
verticalAlignment: Text.AlignBottom
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment