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; focusedApplet = 0;
} }
foreach (AppletHandle* handle, handles) { if (handles.contains(applet)) {
if (handles.contains(applet)) { AppletHandle *handle = handles.value(applet);
handles.remove(handle->applet()); handles.remove(applet);
handle->deleteLater(); handle->deleteLater();
}
} }
emit q->appletRemoved(applet); emit q->appletRemoved(applet);