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

Task-number: QDS-9227
Change-Id: I1f0c147e2dfd69bee9da0872b15d796741b57609
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Samuel Ghinet
2023-02-21 14:37:18 +02:00
parent bf61be5cc0
commit f45080e619

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