summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2019-10-08 13:51:23 +0300
committerTomi Korpipaa <tomi.korpipaa@qt.io>2019-10-09 06:27:58 +0300
commit714c81d95e9a0bd91637a25fb20c54135c306442 (patch)
treea40ffdd9421f6109a652aa3e160e0918f1061b33
parentb367a04314ad0624c9ddb9d56ae50dac10c966b3 (diff)
Fix rendering when closing and re-opening a window
Scene3D stops rendering if a window is closed and then opened again. That happens because eventfilter was removed at SurfaceAboutToBeDestroyed. There is no need to remove the event filter, as a destroyed window will not receive any events in any case. Task-number: QTBUG-77263 Change-Id: I1bcf3c572da6c06c09d1d9590bd8481b1fed6953 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/backend/platformsurfacefilter.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/render/backend/platformsurfacefilter.cpp b/src/render/backend/platformsurfacefilter.cpp
index 7458f607d..891e30c44 100644
--- a/src/render/backend/platformsurfacefilter.cpp
+++ b/src/render/backend/platformsurfacefilter.cpp
@@ -107,10 +107,6 @@ bool PlatformSurfaceFilter::eventFilter(QObject *obj, QEvent *e)
// If we remove it, the call to isSurfaceValid will
// implicitely return false
PlatformSurfaceFilter::m_surfacesValidity.remove(m_surface);
- if (m_obj) {
- m_obj->removeEventFilter(this);
- m_obj = nullptr;
- }
break;
}