diff --git a/share/qtcreator/qmldesigner/welcomepage/MyExampleThumbnailDelegate.qml b/share/qtcreator/qmldesigner/welcomepage/MyExampleThumbnailDelegate.qml index 7afbc42659d..47c525b9e47 100644 --- a/share/qtcreator/qmldesigner/welcomepage/MyExampleThumbnailDelegate.qml +++ b/share/qtcreator/qmldesigner/welcomepage/MyExampleThumbnailDelegate.qml @@ -89,7 +89,7 @@ Item { width: 177 height: 15 color: Constants.currentBrand - text: prettyFilePath + text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath elide: Text.ElideLeft font.pixelSize: 12 leftPadding: 5 diff --git a/share/qtcreator/qmldesigner/welcomepage/MyRecentThumbnailDelegate.qml b/share/qtcreator/qmldesigner/welcomepage/MyRecentThumbnailDelegate.qml index 954af53cd26..28860b7afea 100644 --- a/share/qtcreator/qmldesigner/welcomepage/MyRecentThumbnailDelegate.qml +++ b/share/qtcreator/qmldesigner/welcomepage/MyRecentThumbnailDelegate.qml @@ -52,7 +52,7 @@ Item { anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top - source: thumbnail + source: typeof(thumbnail) === "undefined" ? "" : thumbnail anchors.rightMargin: 8 anchors.leftMargin: 10 anchors.topMargin: 8 @@ -89,7 +89,7 @@ Item { width: 177 height: 15 color: Constants.currentBrand - text: prettyFilePath + text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath elide: Text.ElideLeft font.pixelSize: 12 leftPadding: 5 diff --git a/share/qtcreator/qmldesigner/welcomepage/ThumbnailDelegate.qml b/share/qtcreator/qmldesigner/welcomepage/ThumbnailDelegate.qml index 21072d6166b..84d1f16479c 100644 --- a/share/qtcreator/qmldesigner/welcomepage/ThumbnailDelegate.qml +++ b/share/qtcreator/qmldesigner/welcomepage/ThumbnailDelegate.qml @@ -68,7 +68,7 @@ Item { anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top - source: thumbnail + source: typeof(thumbnail) === "undefined" ? "" : thumbnail anchors.rightMargin: 8 anchors.leftMargin: 10 anchors.topMargin: 8