fix(StatusChatListCategory): only try open popup when supplied
Closes #220
This commit is contained in:
parent
53d63a9b01
commit
cbdaf12814
|
@ -35,7 +35,7 @@ Column {
|
||||||
showMenuButton: !!statusChatListCategory.popupMenu
|
showMenuButton: !!statusChatListCategory.popupMenu
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton && !!statusChatListCategory.popupMenu) {
|
||||||
highlighted = true
|
highlighted = true
|
||||||
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
|
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue