[vlc-devel] [PATCH 12/39] qml: provide placeholder text for genre name
    Prince Gupta 
    guptaprince8832 at gmail.com
       
    Thu Jan  7 11:50:08 UTC 2021
    
    
  
---
 modules/gui/qt/medialibrary/qml/MusicGenres.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index 94ad0e545d..8ba57d3098 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -185,7 +185,7 @@ Widgets.NavigableFocusScope {
                              elide: Text.ElideRight
                              font.pixelSize: VLCStyle.fontSize_large
                              font.weight: Font.DemiBold
-                             text: model.name
+                             text: model.name || i18n.qtr("Unknown genre")
                              color: "white"
                              horizontalAlignment: Text.AlignHCenter
                         }
-- 
2.25.1
    
    
More information about the vlc-devel
mailing list