[vlc-commits] qml: show 'Unknown Title' text when model value is unavailable in titleDelegate

Prince Gupta git at videolan.org
Thu Aug 27 12:44:24 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Sun Aug 23 12:46:33 2020 +0530| [b4e4a65a65763f896492a956325de285abcff46e] | committer: Pierre Lamot

qml: show 'Unknown Title' text when model value is unavailable in titleDelegate

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

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

 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



More information about the vlc-commits mailing list