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:
parent
8807894a41
commit
8565829336
@ -139,7 +139,10 @@ void DataSource::setupData()
|
||||
|
||||
void DataSource::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||
{
|
||||
m_data.insert(sourceName.toLatin1(), 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);
|
||||
|
Loading…
Reference in New Issue
Block a user