diff options
author | Määttä Antti <antti.maatta@theqtcompany.com> | 2016-06-07 11:54:15 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2016-06-08 08:06:06 +0000 |
commit | 3881ed8c19381d8199db842803fb4872ba74dfb9 (patch) | |
tree | 30daa274a1d7d7ca3f7696ebde66e7fd8be31e5a /src/core/services/qeventfilterservice_p.h | |
parent | c4999c878bfa6ca3cd1c5dda8afc989cbc265641 (diff) |
Fix reset in input event filters in shutdown
The event filters can cause reset if they remain registered while the
scene is being shutdown. If the filters are not unregisteded, they
will continue receiving events when the shutdown deallocates them.
Unregister filters when the scene is being shutdown, except the
eventSource filters, since the eventSource might be already deallocated
by that point. Add connection to eventSource destroyed signal to prevent
this.
Task-number: QTBUG-53834
Change-Id: I1dd1875b98021592580dd59a178ad18308c7d67c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/services/qeventfilterservice_p.h')
-rw-r--r-- | src/core/services/qeventfilterservice_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/services/qeventfilterservice_p.h b/src/core/services/qeventfilterservice_p.h index 14ffd16fa..4962e2af6 100644 --- a/src/core/services/qeventfilterservice_p.h +++ b/src/core/services/qeventfilterservice_p.h @@ -67,6 +67,7 @@ public: ~QEventFilterService(); void initialize(QObject *eventSource); + void shutdown(QObject *eventSource); void registerEventFilter(QObject *eventFilter, int priority); void unregisterEventFilter(QObject *eventFilter); |