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

CCBUG:214460

svn path=/branches/KDE/4.4/kdelibs/; revision=1088124
This commit is contained in:
Aaron J. Seigo 2010-02-10 08:49:00 +00:00
parent 18e67bfb56
commit 60439c0ae5

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) {