From 58b6cc3e435f98c9eeca4e0481db53b75f225446 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 29 Nov 2011 15:53:17 +0100 Subject: [PATCH] remove the iterator after accessing it --- dataengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataengine.cpp b/dataengine.cpp index 9ad22efed..718dfba2f 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -331,10 +331,10 @@ void DataEngine::removeAllSources() while (it.hasNext()) { it.next(); Plasma::DataContainer *s = it.value(); - it.remove(); s->disconnect(this); s->deleteLater(); emit sourceRemoved(it.key()); + it.remove(); } }