From 91f37ca343f7e5edc51c2b522b15f4d846584909 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Jul 2017 17:44:11 +0530 Subject: [PATCH] ... --- src/calibre/gui2/library/alternate_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/alternate_views.py b/src/calibre/gui2/library/alternate_views.py index 92a4359b06..bee349f07e 100644 --- a/src/calibre/gui2/library/alternate_views.py +++ b/src/calibre/gui2/library/alternate_views.py @@ -648,7 +648,8 @@ def handle_gesture(ev, view): return True th = ev.gesture(Qt.TapAndHoldGesture) if th and th.state() in (Qt.GestureStarted, Qt.GestureUpdated, Qt.GestureFinished): - send_click(view, th.position(), button=Qt.RightButton) + if th.state() == Qt.GestureFinished: + send_click(view, th.position(), button=Qt.RightButton) ev.accept(Qt.TapAndHoldGesture) return True return True