if the source is new, but comes with data, we need to do an update immediately

svn path=/trunk/KDE/kdelibs/; revision=1116989
This commit is contained in:
Aaron J. Seigo 2010-04-20 19:50:41 +00:00
parent b80b091db4
commit 43240c4c19

View File

@ -97,6 +97,9 @@ void DataEngine::connectSource(const QString &source, QObject *visualization,
// 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)
if (newSource && !s->data().isEmpty()) {
newSource = false;
}
d->connectSource(s, visualization, pollingInterval, intervalAlignment,
!newSource || pollingInterval > 0);
//kDebug() << " ==> source connected";