Bogus foreach.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853577
This commit is contained in:
Alex Merry 2008-08-27 22:17:28 +00:00
parent 8e96263a52
commit 20af95eee1

View File

@ -1542,11 +1542,10 @@ void ContainmentPrivate::appletDestroyed(QObject* object)
focusedApplet = 0;
}
foreach (AppletHandle* handle, handles) {
if (handles.contains(applet)) {
handles.remove(handle->applet());
handle->deleteLater();
}
if (handles.contains(applet)) {
AppletHandle *handle = handles.value(applet);
handles.remove(applet);
handle->deleteLater();
}
emit q->appletRemoved(applet);