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()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
//qDebug() << "updating" << it.key();
|
//qDebug() << "updating" << it.key();
|
||||||
|
if (it.value()->isUsed()) {
|
||||||
updateSourceEvent(it.key());
|
updateSourceEvent(it.key());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
d->scheduleSourcesUpdated();
|
d->scheduleSourcesUpdated();
|
||||||
}
|
}
|
||||||
@ -388,9 +390,11 @@ void DataEngine::updateAllSources()
|
|||||||
void DataEngine::forceImmediateUpdateOfAllVisualizations()
|
void DataEngine::forceImmediateUpdateOfAllVisualizations()
|
||||||
{
|
{
|
||||||
foreach (DataContainer *source, d->sources) {
|
foreach (DataContainer *source, d->sources) {
|
||||||
|
if (source->isUsed()) {
|
||||||
source->forceImmediateUpdate();
|
source->forceImmediateUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Package DataEngine::package() const
|
Package DataEngine::package() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user