backport a fix on remote dataengines:
emit sourceAdded() when has to be setData() was incorrect svn path=/branches/KDE/4.4/kdelibs/; revision=1092090
This commit is contained in:
parent
2c84f169a1
commit
5027fa9c5f
@ -120,6 +120,7 @@ void RemoteDataEngine::remoteCallFinished(Plasma::ServiceJob *job)
|
||||
if (!m_sources.contains(source)) {
|
||||
kDebug() << "source no longer exists... remove that data.";
|
||||
removeSource(source);
|
||||
emit sourceRemoved(source);
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,12 +136,12 @@ void RemoteDataEngine::remoteCallFinished(Plasma::ServiceJob *job)
|
||||
foreach (const QString &source, m_sources) {
|
||||
if (!oldsources.contains(source) && !s.contains(source)) {
|
||||
kDebug() << "new source = " << source;
|
||||
setData(source, DataEngine::Data());
|
||||
emit sourceAdded(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//and now check and update any nding resources
|
||||
//and now check and update any pending resources
|
||||
foreach (const QString &pendingSource, m_pendingSources) {
|
||||
createSource(pendingSource);
|
||||
}
|
||||
@ -154,11 +155,13 @@ void RemoteDataEngine::remoteCallFinished(Plasma::ServiceJob *job)
|
||||
if (newSource) {
|
||||
// the source doesn't exist on the remote side!
|
||||
removeSource(source);
|
||||
emit sourceRemoved(source);
|
||||
m_pendingServices.remove(source);
|
||||
}
|
||||
} else {
|
||||
if (newSource) {
|
||||
m_sources.insert(source);
|
||||
emit sourceAdded(source);
|
||||
|
||||
RemoteService *rs = m_pendingServices.value(source);
|
||||
if (rs) {
|
||||
|
Loading…
Reference in New Issue
Block a user