[vlc-commits] qml: provide placeholder text for genre name

Prince Gupta git at videolan.org
Thu Jan 14 14:42:15 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Dec 22 18:34:00 2020 +0530| [f7963e5f3313a9ccbfa0a26515b00485d4ac224f] | committer: Pierre Lamot

qml: provide placeholder text for genre name

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7963e5f3313a9ccbfa0a26515b00485d4ac224f
---

 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
                         }



More information about the vlc-commits mailing list