diff --git a/dataengine.cpp b/dataengine.cpp index 821d8e027..db44f1b83 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -379,6 +379,11 @@ void DataEngine::timerEvent(QTimerEvent *event) } d->updateTimestamp.restart(); + updateAllSources(); +} + +void DataEngine::updateAllSources() +{ QHashIterator it(d->sources); while (it.hasNext()) { it.next(); diff --git a/dataengine.h b/dataengine.h index 93b09302e..efdf02802 100644 --- a/dataengine.h +++ b/dataengine.h @@ -439,6 +439,11 @@ class PLASMA_EXPORT DataEngine : public QObject **/ void removeSource(const QString &source); + /** + * Immediately updates all existing sources when called + */ + void updateAllSources(); + private: friend class DataEnginePrivate; friend class DataEngineScript;