Resolve qt warnings

CURA-10561
This commit is contained in:
c.lamboo 2023-10-19 22:06:40 +02:00
parent e7188c2f9f
commit bdb7444afa

View File

@ -68,7 +68,7 @@ UM.Dialog
UM.Label UM.Label
{ {
text: { text: {
if (typeof(url) !== "undefined" && url !== "") { if (url !== "") {
return `<a href="${url}">${name}</a>`; return `<a href="${url}">${name}</a>`;
} else { } else {
return name; return name;
@ -151,6 +151,7 @@ UM.Dialog
property string description: model.description property string description: model.description
property string license: model.license property string license: model.license
property string url: model.url property string url: model.url
property string version: ""
} }
model: ListModel model: ListModel
@ -232,6 +233,9 @@ UM.Dialog
width: parent.width width: parent.width
property string name: modelData.name property string name: modelData.name
property string version: modelData.version property string version: modelData.version
property string license: ""
property string url: ""
property string description: ""
} }
} }
} }
@ -255,6 +259,9 @@ UM.Dialog
width: parent.width width: parent.width
property string name: modelData.name property string name: modelData.name
property string version: modelData.version property string version: modelData.version
property string license: ""
property string url: ""
property string description: ""
} }
width: parent.width width: parent.width
model: Object model: Object