check the pointer
This commit is contained in:
parent
6b98a27eee
commit
2bb8101e6f
@ -70,6 +70,9 @@ void ToolTipProxy::setTarget(QGraphicsObject *target)
|
|||||||
|
|
||||||
void ToolTipProxy::syncTarget()
|
void ToolTipProxy::syncTarget()
|
||||||
{
|
{
|
||||||
|
if (!m_target) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// find the scene
|
// find the scene
|
||||||
QGraphicsScene *scene = m_target.data()->scene();
|
QGraphicsScene *scene = m_target.data()->scene();
|
||||||
if (!scene) {
|
if (!scene) {
|
||||||
|
Loading…
Reference in New Issue
Block a user