call the dataUpdated method if a delayed update is requested. fixes clocks.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734094
This commit is contained in:
Aaron J. Seigo 2007-11-08 03:37:57 +00:00
parent 834ece1ae6
commit faaaf298a7

View File

@ -199,7 +199,10 @@ void DataEngine::connectSource(const QString& source, QObject* visualization,
DataContainer* s = d->requestSource(source, &newSource); DataContainer* s = d->requestSource(source, &newSource);
if (s) { 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"; //kDebug() << " ==> source connected";
} }
} }