From 17e18321117e683c4abfc61f715076a16e26321f Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 21 May 2012 09:30:07 +0300 Subject: [PATCH] Null out the d pointer in QQuickMouseEventEx dtor Otherwise every single app will assert in ~QEvent when QML_TRANSLATE_TOUCH_TO_MOUSE is enabled. Change-Id: Ib0590a980cb00b913ec096bcdfba57fffaa19eb1 Reviewed-by: Shawn Rutledge Reviewed-by: Thiago Macieira --- src/quick/items/qquickevents_p_p.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index 9b67c2b..1809394 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -170,6 +170,11 @@ public: } } + ~QQuickMouseEventEx() + { + d = 0; + } + static const QQuickMouseEventEx *extended(const QMouseEvent *e) { const QQuickMouseEventEx *ex = static_cast(e); return reinterpret_cast(ex->d) == e ? ex : 0; -- 2.7.4