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:
Aaron J. Seigo 2010-03-10 23:05:39 +00:00
parent 645419f2f5
commit c477a8c2c2

View File

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