From e7b5ab4a57c8a0177384d31b836219248f0309d5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 7 May 2012 13:38:14 +0300 Subject: [PATCH] Do not send double click when press was not accepted Sending the double click does not make sense in this case. In the worst case something accepts the double click, leaving the mouse grabber set, which results in blocking all further input due to having everything delivered to that one item. Change-Id: Ief4de360203e55e56f83179075e050f717a12108 Reviewed-by: Martin Jones --- src/quick/items/qquickcanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index 9a9a70b..da870fd 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -411,7 +411,7 @@ void QQuickCanvasPrivate::translateTouchToMouse(QTouchEvent *event) event->setAccepted(true); else touchMouseId = -1; - if (doubleClick) { + if (doubleClick && event->isAccepted()) { touchMousePressTimestamp = 0; QQuickMouseEventEx me = touchToMouseEvent(QEvent::MouseButtonDblClick, p); me.setTimestamp(event->timestamp()); -- 2.7.4