forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
2333ed54cd
commit
c461addadc
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user