Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Warn, don't crash during nested delivery of mouse or touch presses | Shawn Rutledge | 2018-10-13 | 1 | -0/+49 |
If during delivery of a mouse press, user code calls qApp->sendEvent() with another mouse press, then when delivery of the nested event is finished, we call QQuickPointerMouseEvent::reset(nullptr). Then when delivery of the original mouse press resumes, crashes are possible because most of the code assumes that QQuickPointerEvent::m_event is not null during delivery. Change-Id: Id65b1f2f64351e40d03bcd4f4d16693d616729da Fixes: QTBUG-70898 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> |