Emit sourceRemoved after it was actually removed, not before

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=788602
This commit is contained in:
Dmitry Suzdalev 2008-03-21 22:35:53 +00:00
parent 42c59df99a
commit 00da2bec77

View File

@ -426,9 +426,10 @@ void DataEngine::removeSource(const QString& source)
//kDebug() << "removing source " << source;
SourceDict::iterator it = d->sources.find(source);
if (it != d->sources.end()) {
emit sourceRemoved(it.key());
QString key = it.key();
it.value()->deleteLater();
d->sources.erase(it);
emit sourceRemoved(key);
}
}