once disconnected, stop caring about the object's destruction; prevents those "no such slot" warnings at runtime (and probably a tiny optimization to boot)
svn path=/trunk/KDE/kdelibs/; revision=1101797
This commit is contained in:
parent
645419f2f5
commit
c477a8c2c2
@ -139,6 +139,8 @@ void DataContainer::connectVisualization(QObject *visualization, uint pollingInt
|
||||
void DataContainer::disconnectVisualization(QObject *visualization)
|
||||
{
|
||||
QMap<QObject *, SignalRelay *>::iterator objIt = d->relayObjects.find(visualization);
|
||||
disconnect(visualization, SIGNAL(destroyed(QObject*)),
|
||||
this, SLOT(disconnectVisualization(QObject*)));//, Qt::QueuedConnection);
|
||||
|
||||
if (objIt == d->relayObjects.end() || !objIt.value()) {
|
||||
// it is connected directly to the DataContainer itself
|
||||
|
Loading…
Reference in New Issue
Block a user