From faaaf298a7ed6d46a7d5d1ae2941589b6f51f9da Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 8 Nov 2007 03:37:57 +0000 Subject: [PATCH] call the dataUpdated method if a delayed update is requested. fixes clocks. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734094 --- dataengine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataengine.cpp b/dataengine.cpp index a54e542ac..43caaac70 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -199,7 +199,10 @@ void DataEngine::connectSource(const QString& source, QObject* visualization, DataContainer* s = d->requestSource(source, &newSource); if (s) { - d->connectSource(s, visualization, updateInterval, intervalAlignment, !newSource); + // we suppress the immediate invocation of dataUpdated here if the source was prexisting and they + // don't request delayed updates (we want to do an immediate update in that case so they + // don't have to wait for the first time out) + d->connectSource(s, visualization, updateInterval, intervalAlignment, !newSource || updateInterval > 0); //kDebug() << " ==> source connected"; } }