diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2012-10-01 13:53:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-02 13:22:49 +0200 |
commit | e840b8b2e3d62dfc222b672a0ba32e7da8dc159e (patch) | |
tree | 3ec4bbd45f32d811ef88813fd567cb9c8d3b2cc8 /src/plugins/platforms/xcb/qxcbdrag.cpp | |
parent | 5ba061a66e6aba4929cc77823a35e4714515ba7f (diff) |
Stop delivering messages when drop has occurred.
Task-number: QTBUG-27406
Change-Id: If14c108060ad6de70991658f0e0249eb544b87a0
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbdrag.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbdrag.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbdrag.cpp b/src/plugins/platforms/xcb/qxcbdrag.cpp index 247b2c991b..1a2de82fd3 100644 --- a/src/plugins/platforms/xcb/qxcbdrag.cpp +++ b/src/plugins/platforms/xcb/qxcbdrag.cpp @@ -484,6 +484,12 @@ void QXcbDrag::move(const QMouseEvent *me) void QXcbDrag::drop(const QMouseEvent *event) { QBasicDrag::drop(event); + + if (heartbeat != -1) { + killTimer(heartbeat); + heartbeat = -1; + } + if (!current_target) return; |