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: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.RightButton && !!statusChatList.popupMenu) {
|
if (mouse.button === Qt.RightButton && !!statusChatList.popupMenu) {
|
||||||
highlighted = true
|
statusChatListItem.highlighted = true
|
||||||
|
|
||||||
let originalOpenHandler = popupMenuSlot.item.openHandler
|
let originalOpenHandler = popupMenuSlot.item.openHandler
|
||||||
let originalCloseHandler = popupMenuSlot.item.closeHandler
|
let originalCloseHandler = popupMenuSlot.item.closeHandler
|
||||||
|
@ -71,7 +71,7 @@ Column {
|
||||||
}
|
}
|
||||||
|
|
||||||
popupMenuSlot.item.closeHandler = function () {
|
popupMenuSlot.item.closeHandler = function () {
|
||||||
highlighted = false
|
statusChatListItem.highlighted = false
|
||||||
if (!!originalCloseHandler) {
|
if (!!originalCloseHandler) {
|
||||||
originalCloseHandler()
|
originalCloseHandler()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue