From aa461fe0782dc8ccbe340c14afe2eaa7682fc4ee Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 14 Aug 2023 16:45:16 -0400 Subject: [PATCH] Prevent the TapHandler in AvatarTabButton from triggering clicked() This caused right-clicks on this component (for example, in the space drawer) to cause clicked() to be called on the delegate. (cherry picked from commit 91d9406c386e9d62003a07acefd1a02efbb2aeb5) --- src/qml/Component/AvatarTabButton.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qml/Component/AvatarTabButton.qml b/src/qml/Component/AvatarTabButton.qml index 437ae9e41..22dd9a2f1 100644 --- a/src/qml/Component/AvatarTabButton.qml +++ b/src/qml/Component/AvatarTabButton.qml @@ -28,6 +28,8 @@ Delegates.RoundedItemDelegate { TapHandler { acceptedButtons: Qt.RightButton acceptedDevices: PointerDevice.Mouse + grabPermissions: PointerHandler.TakeOverForbidden + gesturePolicy: TapHandler.WithinBounds onTapped: root.contextMenuRequested() }