From 6b9628f8967e22ec7a5a5edaeed14391f6660e2a Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 31 Jan 2018 02:12:05 +0100 Subject: [PATCH] Don't show "undefined" on the settings page if there's no extra info --- discover/qml/SourcesPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discover/qml/SourcesPage.qml b/discover/qml/SourcesPage.qml index 78da7846..b9fc9e21 100644 --- a/discover/qml/SourcesPage.qml +++ b/discover/qml/SourcesPage.qml @@ -190,7 +190,7 @@ DiscoverPage { } } QQC2.Label { - text: display + " - " + toolTip + "" + text: display + (toolTip ? " - " + toolTip + "" : "") elide: Text.ElideRight Layout.fillWidth: true } -- GitLab