From 4572541637f7ce1f93f3b4e0f4d0ab69b01f6ed2 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Wed, 15 Jul 2015 15:43:09 +0100 Subject: Protect the content item with a QPointer since we don't own it. Fixes a CI crash reproducible at least on Ubuntu Change-Id: I45a59054c20c3a99da30b79d33e24184bf328db9 Reviewed-by: Gabriel de Dietrich --- src/controls/qquickpopupwindow_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/controls/qquickpopupwindow_p.h') diff --git a/src/controls/qquickpopupwindow_p.h b/src/controls/qquickpopupwindow_p.h index b95275c0..617df53d 100644 --- a/src/controls/qquickpopupwindow_p.h +++ b/src/controls/qquickpopupwindow_p.h @@ -37,12 +37,12 @@ #ifndef QQUICKPOPUPWINDOW_H #define QQUICKPOPUPWINDOW_H +#include +#include #include QT_BEGIN_NAMESPACE -class QQuickItem; - class QQuickPopupWindow : public QQuickWindow { Q_OBJECT @@ -84,7 +84,7 @@ private: void forwardEventToTransientParent(QMouseEvent *); QQuickItem *m_parentItem; - QQuickItem *m_contentItem; + QPointer m_contentItem; bool m_mouseMoved; bool m_needsActivatedEvent; bool m_dismissed; -- cgit v1.2.1