Bogus foreach.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=853577
This commit is contained in:
parent
8e96263a52
commit
20af95eee1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user