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:
parent
adfdadd43a
commit
362872435e
@ -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