[vlc-devel] [PATCH 4/4] qml: show 'Unknown Title' text when model value is unavailable in titleDelegate

Prince Gupta guptaprince8832 at gmail.com
Mon Aug 24 17:12:43 CEST 2020


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

diff --git a/modules/gui/qt/widgets/qml/TableColumns.qml b/modules/gui/qt/widgets/qml/TableColumns.qml
index aa91e587b2..84d20bbd3d 100644
--- a/modules/gui/qt/widgets/qml/TableColumns.qml
+++ b/modules/gui/qt/widgets/qml/TableColumns.qml
@@ -50,7 +50,7 @@ Item {
         }
 
         Widgets.ListLabel {
-            text: !rowModel ? "" : (rowModel[model.criteria] || "")
+            text: !rowModel ? "" : (rowModel[model.criteria] || i18n.qtr("Unknown Title"))
 
             Layout.fillHeight: true
             Layout.fillWidth: true
-- 
2.25.1



More information about the vlc-devel mailing list