a little more conservative
svn path=/trunk/KDE/kdelibs/; revision=1122507
This commit is contained in:
parent
29503066dd
commit
2213c2e77b
@ -341,9 +341,11 @@ void DataEngine::removeAllSources()
|
|||||||
QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
emit sourceRemoved(it.key());
|
const QString source = it.key();
|
||||||
delete it.value();
|
Plasma::DataContainer *s = it.value();
|
||||||
it.remove();
|
it.remove();
|
||||||
|
emit sourceRemoved(source);
|
||||||
|
delete s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user