don't do an immediate call if the data set is empty. this _shouldn't_ break anything (worst case is that a visualization would be expecting notification of an empty data set, and now it'll have to wait) and should line up with widget writer's expectations better (it's probably the #1 thing we get feedback on when it comes to dataengine usage)
svn path=/trunk/KDE/kdelibs/; revision=1013572
This commit is contained in:
parent
e2e97757ca
commit
4d8abe97b0
@ -603,7 +603,8 @@ void DataEnginePrivate::connectSource(DataContainer *s, QObject *visualization,
|
||||
// we don't want to do an immediate call if we are simply
|
||||
// reconnecting
|
||||
//kDebug() << "immediate call requested, we have:" << s->visualizationIsConnected(visualization);
|
||||
immediateCall = !s->visualizationIsConnected(visualization);
|
||||
immediateCall = !s->data().isEmpty() &&
|
||||
!s->visualizationIsConnected(visualization);
|
||||
}
|
||||
|
||||
s->connectVisualization(visualization, pollingInterval, align);
|
||||
|
Loading…
Reference in New Issue
Block a user