make visualizationIsConnected work better

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800763
This commit is contained in:
Aaron J. Seigo 2008-04-24 20:09:57 +00:00
parent f4cb38cef1
commit 52c81b0a5a
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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);
}