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;
|
//kDebug() << "removing source " << source;
|
||||||
SourceDict::iterator it = d->sources.find(source);
|
SourceDict::iterator it = d->sources.find(source);
|
||||||
if (it != d->sources.end()) {
|
if (it != d->sources.end()) {
|
||||||
emit sourceRemoved(it.key());
|
QString key = it.key();
|
||||||
it.value()->deleteLater();
|
it.value()->deleteLater();
|
||||||
d->sources.erase(it);
|
d->sources.erase(it);
|
||||||
|
emit sourceRemoved(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user