Extra guard in Containment::corona in the special system tray case

REVIEW: 128754
This commit is contained in:
David Edmundson 2016-08-25 17:48:56 +01:00
parent 22ba8186f0
commit 81a314c7a9

View File

@ -317,7 +317,7 @@ Corona *Containment::corona() const
//case in which this containment is child of an applet, hello systray :)
} else {
Plasma::Applet *parentApplet = qobject_cast<Plasma::Applet *>(parent());
if (parentApplet) {
if (parentApplet && parentApplet->containment()) {
return parentApplet->containment()->corona();
}
}