chore: add safety to satisfy QML

This commit is contained in:
Pascal Precht 2021-07-06 12:29:11 +02:00 committed by Michał Cieślak
parent 82960a912b
commit 00e2a7406a
1 changed files with 3 additions and 1 deletions

View File

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