diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index 2dc3a3083..26d48e306 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -360,8 +360,8 @@ KConfigGroup *AppletPrivate::mainConfigGroup() Containment *c = q->containment(); Plasma::Applet *parentApplet = 0; - if (c && c->corona()) { - parentApplet = qobject_cast(c->corona()->parent()); + if (c) { + parentApplet = qobject_cast(c->parent()); } if (q->isContainment()) {