From 722d92c01257520f0284e27ff471e7fc5d7faae3 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 2 Jul 2021 12:28:43 +0200 Subject: [PATCH] fix(StatusChatList): ensure popupMenu closeHandler don't break These broke because we were referring to a `highlighted` property that was wrongly scoped. Fixes #216 --- src/StatusQ/Components/StatusChatList.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StatusQ/Components/StatusChatList.qml b/src/StatusQ/Components/StatusChatList.qml index 9bcdf5fc..986699da 100644 --- a/src/StatusQ/Components/StatusChatList.qml +++ b/src/StatusQ/Components/StatusChatList.qml @@ -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() }