diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-09-03 20:42:04 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-09-03 22:22:55 +0200 |
commit | 222f22f626d8ae92500da440a4fb5f429da52407 (patch) | |
tree | 7b10dc7d7a63ff0cb99629fc63e0ea3ff690a044 /src/quick/items/qquickmousearea.cpp | |
parent | 0de680c8e8fab36e386dca35e5008ffaa27e8ef6 (diff) |
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 <aalpert@blackberry.com>
Diffstat (limited to 'src/quick/items/qquickmousearea.cpp')
-rw-r--r-- | src/quick/items/qquickmousearea.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |