check the pointer

This commit is contained in:
Marco Martin 2011-11-03 13:48:11 +01:00
parent 6b98a27eee
commit 2bb8101e6f

View File

@ -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) {