Make sure the source applet still exists
Will backport to the 4.2 branch svn path=/trunk/KDE/kdelibs/; revision=919944
This commit is contained in:
parent
9bd8fe0219
commit
42d63443ab
@ -450,11 +450,13 @@ void ExtenderItem::setCollapsed(bool collapsed)
|
|||||||
|
|
||||||
void ExtenderItem::returnToSource()
|
void ExtenderItem::returnToSource()
|
||||||
{
|
{
|
||||||
if (!d->sourceApplet) {
|
if (!d || !d->sourceApplet) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (d->sourceApplet->d) {
|
||||||
setExtender(d->sourceApplet->d->extender);
|
setExtender(d->sourceApplet->d->extender);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ExtenderItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void ExtenderItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget)
|
QWidget *widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user