diff options
author | Samuel Ghinet <samuel.ghinet@qt.io> | 2023-02-21 14:37:18 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2023-02-22 10:23:42 +0000 |
commit | c461addadc34cde4cbd5c6b18a32f680bc0c879e (patch) | |
tree | 09a52bc9b4bcdc5d3880d2f116f1e34f0ae59b6f | |
parent | 2333ed54cd6624482cee8ebf70e8913aea96c966 (diff) | |
download | qt-creator-c461addadc34cde4cbd5c6b18a32f680bc0c879e.tar.gz |
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 <thomas.hartmann@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexture.qml index f1d7b8a78d..1d2d9852a1 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() } } |