QmlDesigner: Don't show the context menu for not-downloaded textures

(cherry picked from commit f45080e619)
Task-number: QDS-9227
Change-Id: I1f0c147e2dfd69bee9da0872b15d796741b57609
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
This commit is contained in:
Samuel Ghinet
2023-02-21 14:37:18 +02:00
committed by Thomas Hartmann
parent 2333ed54cd
commit c461addadc

View File

@@ -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()
}
}