kill the timer first, just in case on of the sources updates, causing a visualization to do something that then triggers another source update in the same engine

svn path=/trunk/KDE/kdelibs/; revision=1006047
This commit is contained in:
Aaron J. Seigo 2009-08-02 21:56:51 +00:00
parent 009f60dcd1
commit 71640d2866

View File

@ -375,14 +375,14 @@ void DataEngine::timerEvent(QTimerEvent *event)
d->updateTimerId = 0;
updateAllSources();
} else if (event->timerId() == d->checkSourcesTimerId) {
killTimer(d->checkSourcesTimerId);
d->checkSourcesTimerId = 0;
QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
while (it.hasNext()) {
it.next();
it.value()->checkForUpdate();
}
killTimer(d->checkSourcesTimerId);
d->checkSourcesTimerId = 0;
} else {
QObject::timerEvent(event);
}