[vlc-devel] [PATCH 13/39] qml: provide placeholder text for artist name

Prince Gupta guptaprince8832 at gmail.com
Thu Jan 7 11:50:09 UTC 2021


---
 modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
index d2a108c16c..e4ee054fea 100644
--- a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
@@ -163,7 +163,7 @@ Widgets.PageLoader {
                     delegate: AudioGridItem {
                         id: gridItem
 
-                        title: model.name
+                        title: model.name || i18n.qtr("Unknown artist")
                         subtitle: model.nb_tracks > 1 ? i18n.qtr("%1 songs").arg(model.nb_tracks) : i18n.qtr("%1 song").arg(model.nb_tracks)
                         pictureRadius: VLCStyle.artistGridCover_radius
                         pictureHeight: VLCStyle.artistGridCover_radius
-- 
2.25.1



More information about the vlc-devel mailing list