catch the case where we have a containment, but the containment is not in a corona

BUG:214460

svn path=/trunk/KDE/kdelibs/; revision=1088122
This commit is contained in:
Aaron J. Seigo 2010-02-10 08:47:12 +00:00
parent adfdadd43a
commit 362872435e

View File

@ -209,7 +209,14 @@ ExtenderItem *Extender::item(const QString &name) const
return 0;
}
foreach (Containment *c, containment->corona()->containments()) {
QList<Containment *> containments;
if (containment->corona()) {
containments = containment->corona()->containments();
} else {
containments << containment;
}
foreach (Containment *c, containments) {
foreach (Applet *applet, c->applets()) {
if (applet->d->extender) {
if (applet->d->extender.data() == this) {