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:
parent
18e67bfb56
commit
60439c0ae5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user