diff --git a/src/plasma/datacontainer.cpp b/src/plasma/datacontainer.cpp index 3ebc66a3b..f24b136d4 100644 --- a/src/plasma/datacontainer.cpp +++ b/src/plasma/datacontainer.cpp @@ -85,7 +85,7 @@ bool DataContainer::visualizationIsConnected(QObject *visualization) const void DataContainer::connectVisualization(QObject *visualization, uint pollingInterval, Plasma::Types::IntervalAlignment alignment) { - //qDebug() << "connecting visualization" << visualization << "at interval of" + //qDebug() << "connecting visualization" <::iterator objIt = d->relayObjects.find(visualization); bool connected = objIt != d->relayObjects.end(); @@ -327,7 +327,7 @@ void DataContainer::setNeedsUpdate(bool update) bool DataContainer::isUsed() const { - return !d->relays.isEmpty() && + return !d->relays.isEmpty() || receivers(SIGNAL(dataUpdated(QString, Plasma::DataEngine::Data))) > 0; }