qml: assign object to context menu as well

This commit is contained in:
Anastasiya Semenkevich 2024-09-02 12:51:07 +03:00
parent 36e383eec6
commit 7485871b74
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }