make removeAllSources match removeSource closer
This commit is contained in:
parent
2f5d8e4e7f
commit
e500cd4bd7
@ -331,10 +331,10 @@ void DataEngine::removeAllSources()
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
Plasma::DataContainer *s = it.value();
|
||||
emit sourceRemoved(it.key());
|
||||
it.remove();
|
||||
s->disconnect(this);
|
||||
delete s;
|
||||
s->deleteLater();
|
||||
emit sourceRemoved(it.key());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user