mirror of https://github.com/status-im/StatusQ.git
fix(StatusChatList): ensure popupMenu closeHandler don't break
These broke because we were referring to a `highlighted` property that was wrongly scoped. Fixes #216
This commit is contained in:
parent
a9ae426cf5
commit
722d92c012
|
@ -59,7 +59,7 @@ Column {
|
|||
|
||||
onClicked: {
|
||||
if (mouse.button === Qt.RightButton && !!statusChatList.popupMenu) {
|
||||
highlighted = true
|
||||
statusChatListItem.highlighted = true
|
||||
|
||||
let originalOpenHandler = popupMenuSlot.item.openHandler
|
||||
let originalCloseHandler = popupMenuSlot.item.closeHandler
|
||||
|
@ -71,7 +71,7 @@ Column {
|
|||
}
|
||||
|
||||
popupMenuSlot.item.closeHandler = function () {
|
||||
highlighted = false
|
||||
statusChatListItem.highlighted = false
|
||||
if (!!originalCloseHandler) {
|
||||
originalCloseHandler()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue