Avoid crash when windows with active mouse synthesization are deleted
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Fri, 10 Feb 2012 11:40:20 +0000 (13:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 18:39:57 +0000 (19:39 +0100)
commit1e744d252370c258590ee4b28ceefa3a5db5b720
treec8c6b98a7c072ac79c3a25ced12d38201b9b00a9
parent19a39a4ea2f7ef7f9a1e8a54fc13240e79ccf79d
Avoid crash when windows with active mouse synthesization are deleted

Some QtQuick autotests, that apparently generate incomplete touch
sequences and delete windows without finishing them, triggered a crash
when handling the TouchCancel event in QGuiApplication.

Change-Id: Ie725d5a16f55acc40bdc8e2c38f93daac9477f2a
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h