From c461addadc34cde4cbd5c6b18a32f680bc0c879e Mon Sep 17 00:00:00 2001 From: Samuel Ghinet Date: Tue, 21 Feb 2023 14:37:18 +0200 Subject: [PATCH] QmlDesigner: Don't show the context menu for not-downloaded textures (cherry picked from commit f45080e6193e82630fb66777c72e5f18661d697a) Task-number: QDS-9227 Change-Id: I1f0c147e2dfd69bee9da0872b15d796741b57609 Reviewed-by: Thomas Hartmann Reviewed-by: Samuel Ghinet --- .../contentLibraryQmlSource/ContentLibraryTexture.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml index f1d7b8a78d0..1d2d9852a18 100644 --- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml +++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml @@ -160,7 +160,7 @@ Item { if (mouse.button === Qt.LeftButton) { if (root.downloadState === "downloaded") rootView.startDragTexture(modelData, mapToGlobal(mouse.x, mouse.y)) - } else if (mouse.button === Qt.RightButton) { + } else if (mouse.button === Qt.RightButton && root.downloadState === "downloaded") { root.showContextMenu() } }