From 2bb8101e6f92bd08aff2f74bb0e53746992fca61 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 3 Nov 2011 13:48:11 +0100 Subject: [PATCH] check the pointer --- declarativeimports/core/tooltip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/declarativeimports/core/tooltip.cpp b/declarativeimports/core/tooltip.cpp index 966450ce5..603bfd277 100644 --- a/declarativeimports/core/tooltip.cpp +++ b/declarativeimports/core/tooltip.cpp @@ -70,6 +70,9 @@ void ToolTipProxy::setTarget(QGraphicsObject *target) void ToolTipProxy::syncTarget() { + if (!m_target) { + return; + } // find the scene QGraphicsScene *scene = m_target.data()->scene(); if (!scene) {