on xenial help sign in
Make sure there's a window
510bd77Albert Astals Cid
tests/utils/modules/Unity/Test/TouchEventSequenceWrapper.cpp+4−2
@@ -28,8 +28,10 @@ void TouchEventSequenceWrapper::commit(bool processEvents)
28{
28{
29 m_eventSequence.commit(processEvents);
29 m_eventSequence.commit(processEvents);
30#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
30#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
31+ if (m_item->window()) {
31− QQuickWindowPrivate *wp = QQuickWindowPrivate::get(m_item->window());
32+ QQuickWindowPrivate *wp = QQuickWindowPrivate::get(m_item->window());
32− wp->flushDelayedTouchEvent();
33+ wp->flushDelayedTouchEvent();
34+ }
33#endif
35#endif
34}
36}
35
37