summaryrefslogtreecommitdiff
path: root/share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml')
-rw-r--r--share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml b/share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml
index 4317bd2f5d..bbe6b03109 100644
--- a/share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml
+++ b/share/qtcreator/welcomescreen/widgets/CustomizedGridView.qml
@@ -47,8 +47,8 @@ GridView {
property string mockupSource: model.imageSource
property string helpSource: model.imageUrl !== "" ? sourcePrefix + encodeURI(model.imageUrl) : ""
- imageSource: model.imageSource === undefined ? helpSource : mockupSource
- videoSource: model.imageSource === undefined ? model.imageUrl : mockupSource
+ imageSource: isVideo ? "" : (model.imageSource === undefined ? helpSource : mockupSource)
+ videoSource: isVideo ? (model.imageSource === undefined ? model.imageUrl : mockupSource) : ""
caption: model.name;
description: model.description