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
2fc884244e
commit
867be4194d
|
@ -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