2
0
mirror of synced 2025-02-18 09:36:24 +00:00

fix(StatusChatListCategory): only try open popup when supplied

Closes #220
This commit is contained in:
Pascal Precht 2021-07-02 12:36:20 +02:00 committed by Pascal Precht
parent 53d63a9b01
commit cbdaf12814

View File

@ -35,7 +35,7 @@ Column {
showMenuButton: !!statusChatListCategory.popupMenu
onClicked: {
if (mouse.button === Qt.RightButton) {
if (mouse.button === Qt.RightButton && !!statusChatListCategory.popupMenu) {
highlighted = true
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
return