qml: assign object to context menu as well
This commit is contained in:
parent
36e383eec6
commit
7485871b74
|
@ -270,7 +270,7 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
walletAccountContextMenu.active = true
|
walletAccountContextMenu.active = true
|
||||||
walletAccountContextMenu.item.account = model
|
walletAccountContextMenu.item.account = Object.assign({}, model)
|
||||||
walletAccountContextMenu.item.popup(this, mouse.x, mouse.y)
|
walletAccountContextMenu.item.popup(this, mouse.x, mouse.y)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue