From 60439c0ae5e63d290dc2bc540b3f6b2d83f399b0 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 10 Feb 2010 08:49:00 +0000 Subject: [PATCH] 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 --- extenders/extender.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extenders/extender.cpp b/extenders/extender.cpp index 37d60119f..e7e71ea3e 100644 --- a/extenders/extender.cpp +++ b/extenders/extender.cpp @@ -209,7 +209,14 @@ ExtenderItem *Extender::item(const QString &name) const return 0; } - foreach (Containment *c, containment->corona()->containments()) { + QList 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) {