make visualizationIsConnected work better
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800763
This commit is contained in:
parent
f4cb38cef1
commit
52c81b0a5a
@ -106,7 +106,7 @@ void DataContainer::setNeedsUpdate(bool update)
|
||||
|
||||
bool DataContainer::visualizationIsConnected(QObject *visualization) const
|
||||
{
|
||||
return d->relayObjects.find(visualization) != d->relayObjects.constEnd();
|
||||
return d->relayObjects.contains(visualization);
|
||||
}
|
||||
|
||||
void DataContainer::checkUsage()
|
||||
|
@ -141,6 +141,7 @@ class DataEngine::Private
|
||||
if (immediateCall) {
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user