only set data that was explicitly connected to the dataengine

(some dataengines are a bit too exuberant in sending stuff, like the images of microblog)

svn path=/trunk/KDE/kdebase/runtime/; revision=1216008
This commit is contained in:
Marco Martin 2011-01-20 20:22:44 +00:00
parent 8807894a41
commit 8565829336

View File

@ -139,7 +139,10 @@ void DataSource::setupData()
void DataSource::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
{
//it can arrive also data we don't explicitly connected a source
if (m_connectedSources.contains(sourceName)) {
m_data.insert(sourceName.toLatin1(), data);
}
emit dataChanged();
emit newData(sourceName, data);