diff --git a/datacontainer.cpp b/datacontainer.cpp index d6b36dcce..504923fbe 100644 --- a/datacontainer.cpp +++ b/datacontainer.cpp @@ -139,6 +139,8 @@ void DataContainer::connectVisualization(QObject *visualization, uint pollingInt void DataContainer::disconnectVisualization(QObject *visualization) { QMap::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