Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1d2a9015 by Fatih Uzunoglu at 2024-05-18T05:06:12+00:00
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.

- - - - -


1 changed file:

- modules/gui/qt/playlist/qml/PlaylistDelegate.qml


Changes:

=====================================
modules/gui/qt/playlist/qml/PlaylistDelegate.qml
=====================================
@@ -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
             }



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/1d2a90155172b147ae8302e1371d50a278701c94

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/1d2a90155172b147ae8302e1371d50a278701c94
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to