Emit sourceRemoved after it was actually removed, not before
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=788602
This commit is contained in:
parent
42c59df99a
commit
00da2bec77
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user