forked from qt-creator/qt-creator
QmlDesigner: Allow texture download only via left mouse button
Previously, the user would have downloaded the real texture even when clicking with the right mouse button. Task-number: QDS-9226 Change-Id: I4040cda4a8c541edc12b4bfe821a09c76eb7efc4 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -165,7 +165,10 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: (mouse) => {
|
||||||
|
if (mouse.button !== Qt.LeftButton)
|
||||||
|
return
|
||||||
|
|
||||||
if (root.downloadState !== "" && root.downloadState !== "failed")
|
if (root.downloadState !== "" && root.downloadState !== "failed")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user