Make sure the source applet still exists
backported from trunk svn path=/branches/KDE/4.2/kdelibs/; revision=919946
This commit is contained in:
parent
5171e27826
commit
2bbae9fb2d
@ -449,10 +449,12 @@ void ExtenderItem::setCollapsed(bool collapsed)
|
||||
|
||||
void ExtenderItem::returnToSource()
|
||||
{
|
||||
if (!d->sourceApplet) {
|
||||
if (!d || !d->sourceApplet) {
|
||||
return;
|
||||
}
|
||||
setExtender(d->sourceApplet->d->extender);
|
||||
if (d->sourceApplet->d) {
|
||||
setExtender(d->sourceApplet->d->extender);
|
||||
}
|
||||
}
|
||||
|
||||
void ExtenderItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
|
Loading…
Reference in New Issue
Block a user