Commit 64ce342b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove warning about empty string

parent 65540e10
......@@ -103,14 +103,14 @@ Kirigami.Page {
anchors.right: parent.right
}
QQC2.Label {
text: i18n("Copyright: %1", model.copyright)
text: model.copyright != undefined ? i18n("Copyright: %1", model.copyright) : ""
visible: model.copyright != undefined
wrapMode: Text.WordWrap
anchors.left: parent.left
anchors.right: parent.right
}
QQC2.Label {
text: i18n("Homepage: <a href=\"%1\">%1</a>", model.url)
text: model.url != undefined ? i18n("Homepage: <a href=\"%1\">%1</a>", model.url) : ""
visible: model.url != undefined
onLinkActivated: Qt.openUrlExternally(link)
wrapMode: Text.WordWrap
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment