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:
parent
009f60dcd1
commit
71640d2866
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user