From 2c6cbc7be4fa03e6e4c5b2a4c15fe670588abd30 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Mon, 27 Jul 2020 10:40:53 +0200 Subject: [PATCH] Fix qml warnings in ToolboxAuthorPage --- .../Toolbox/resources/qml/pages/ToolboxAuthorPage.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/Toolbox/resources/qml/pages/ToolboxAuthorPage.qml b/plugins/Toolbox/resources/qml/pages/ToolboxAuthorPage.qml index acc6140b5b..74305fb4bd 100644 --- a/plugins/Toolbox/resources/qml/pages/ToolboxAuthorPage.qml +++ b/plugins/Toolbox/resources/qml/pages/ToolboxAuthorPage.qml @@ -33,7 +33,7 @@ Item width: UM.Theme.getSize("toolbox_thumbnail_medium").width height: UM.Theme.getSize("toolbox_thumbnail_medium").height fillMode: Image.PreserveAspectFit - source: details.icon_url || "../../images/placeholder.svg" + source: details && details.icon_url ? details.icon_url : "../../images/placeholder.svg" mipmap: true anchors { @@ -56,7 +56,7 @@ Item rightMargin: UM.Theme.getSize("wide_margin").width bottomMargin: UM.Theme.getSize("default_margin").height } - text: details.name || "" + text: details && details.name ? details.name : "" font: UM.Theme.getFont("large_bold") wrapMode: Text.WordWrap width: parent.width @@ -66,7 +66,7 @@ Item Label { id: description - text: details.description || "" + text: details && details.description ? details.description : "" font: UM.Theme.getFont("default") anchors { @@ -121,7 +121,7 @@ Item { text: { - if (details.website) + if (details && details.website) { return "" + details.website + "" } @@ -140,7 +140,7 @@ Item { text: { - if (details.email) + if (details && details.email) { return "" + details.email + "" }