parent
4db64841eb
commit
f62b0ca99c
|
@ -111,10 +111,7 @@ Item {
|
||||||
wrapper.hovered = false
|
wrapper.hovered = false
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.LeftButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
Global.openProfilePopup(wrapper.publicKey);
|
|
||||||
}
|
|
||||||
else if (mouse.button === Qt.RightButton && !!messageContextMenu) {
|
|
||||||
// Set parent, X & Y positions for the messageContextMenu
|
// Set parent, X & Y positions for the messageContextMenu
|
||||||
messageContextMenu.parent = rectangle
|
messageContextMenu.parent = rectangle
|
||||||
messageContextMenu.setXPosition = function() { return 0}
|
messageContextMenu.setXPosition = function() { return 0}
|
||||||
|
@ -126,6 +123,8 @@ Item {
|
||||||
messageContextMenu.selectedUserDisplayName = wrapper.name
|
messageContextMenu.selectedUserDisplayName = wrapper.name
|
||||||
messageContextMenu.selectedUserIcon = wrapper.iconToShow
|
messageContextMenu.selectedUserIcon = wrapper.iconToShow
|
||||||
messageContextMenu.popup()
|
messageContextMenu.popup()
|
||||||
|
} else if (mouse.button === Qt.LeftButton && !!messageContextMenu) {
|
||||||
|
Global.openProfilePopup(wrapper.publicKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue