chore: add safety to satisfy QML

This commit is contained in:
Pascal Precht 2021-07-06 12:29:11 +02:00
parent 7dcec0cace
commit 0072154f9f
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ Column {
} }
popupMenuSlot.item.closeHandler = function () { popupMenuSlot.item.closeHandler = function () {
if (statusChatListItem) {
statusChatListItem.highlighted = false statusChatListItem.highlighted = false
}
if (!!originalCloseHandler) { if (!!originalCloseHandler) {
originalCloseHandler() originalCloseHandler()
} }