[vlc-commits] [Git][videolan/vlc][master] qml: fix "Unknown Artist" is not shown in PlaylistDelegate

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat May 18 05:24:52 UTC 2024



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


More information about the vlc-commits mailing list