fix(StatusChatListCategory): ensures showActionButtons is taken into account
when showing the menu button and right click
This commit is contained in:
parent
38736ad58a
commit
43623b3c7b
|
@ -32,10 +32,10 @@ Column {
|
||||||
title: statusChatListCategory.name
|
title: statusChatListCategory.name
|
||||||
opened: statusChatListCategory.opened
|
opened: statusChatListCategory.opened
|
||||||
|
|
||||||
showMenuButton: !!statusChatListCategory.popupMenu
|
showMenuButton: showActionButtons && !!statusChatListCategory.popupMenu
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (mouse.button === Qt.RightButton && !!statusChatListCategory.popupMenu) {
|
if (mouse.button === Qt.RightButton && showActionButtons && !!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