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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user