don't emit dataChanged() when undesired data arrives

svn path=/trunk/KDE/kdebase/runtime/; revision=1216014
This commit is contained in:
Marco Martin 2011-01-20 20:29:00 +00:00
parent 8565829336
commit ccf35dd608

View File

@ -142,10 +142,10 @@ void DataSource::dataUpdated(const QString &sourceName, const Plasma::DataEngine
//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);
emit dataChanged();
emit newData(sourceName, data);
}
}
void DataSource::removeSource(const QString &source)