Update DataEngine sources only if they are used
REVIEW: 118669
This commit is contained in:
parent
dab9d5f303
commit
a177696c6c
@ -379,8 +379,10 @@ void DataEngine::updateAllSources()
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
//qDebug() << "updating" << it.key();
|
||||
if (it.value()->isUsed()) {
|
||||
updateSourceEvent(it.key());
|
||||
}
|
||||
}
|
||||
|
||||
d->scheduleSourcesUpdated();
|
||||
}
|
||||
@ -388,8 +390,10 @@ void DataEngine::updateAllSources()
|
||||
void DataEngine::forceImmediateUpdateOfAllVisualizations()
|
||||
{
|
||||
foreach (DataContainer *source, d->sources) {
|
||||
if (source->isUsed()) {
|
||||
source->forceImmediateUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Package DataEngine::package() const
|
||||
|
Loading…
Reference in New Issue
Block a user