From e500cd4bd7034f3ba3cd383278528ef9f935971b Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 28 Nov 2011 10:37:21 +0100 Subject: [PATCH] make removeAllSources match removeSource closer --- dataengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataengine.cpp b/dataengine.cpp index c33b10332..e6b115324 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -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()); } }