Set the pointer before connecting to it.
This fixes the warning "QObject::connect: invalid null parameter"
This commit is contained in:
parent
7a9855ec77
commit
2a8891ec95
@ -386,10 +386,10 @@ void AppletInterface::setToolTipItem(QQuickItem *toolTipItem)
|
||||
return;
|
||||
}
|
||||
|
||||
m_toolTipItem = toolTipItem;
|
||||
connect(m_toolTipItem.data(), &QObject::destroyed,
|
||||
this, &AppletInterface::toolTipItemChanged);
|
||||
|
||||
m_toolTipItem = toolTipItem;
|
||||
emit toolTipItemChanged();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user