From 222f22f626d8ae92500da440a4fb5f429da52407 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 3 Sep 2014 20:42:04 +0200 Subject: MouseArea: Fix cancelling the double click when the windows loses focus Without this, the next click is not received after the windows loses focus while we double clicked but not released the mouse. This may happen if the onDoubleClicked opens a new window Change-Id: I86742de2bb1ea4c9657b9d5e90472d093293177d Reviewed-by: Alan Alpert --- src/quick/items/qquickmousearea.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickmousearea.cpp') diff --git a/src/quick/items/qquickmousearea.cpp b/src/quick/items/qquickmousearea.cpp index 4af728d14f..dc7ba96c35 100644 --- a/src/quick/items/qquickmousearea.cpp +++ b/src/quick/items/qquickmousearea.cpp @@ -843,6 +843,7 @@ void QQuickMouseArea::ungrabMouse() // state d->pressed = 0; d->stealMouse = false; + d->doubleClick = false; setKeepMouseGrab(false); #ifndef QT_NO_DRAGANDDROP -- cgit v1.2.3