check for existence of applet
svn path=/trunk/KDE/kdelibs/; revision=1129236
This commit is contained in:
parent
7a8169685d
commit
19d0f06981
@ -210,6 +210,9 @@ ExtenderItem::~ExtenderItem()
|
|||||||
|
|
||||||
KConfigGroup ExtenderItem::config() const
|
KConfigGroup ExtenderItem::config() const
|
||||||
{
|
{
|
||||||
|
if (d->extender->d->applet) {
|
||||||
|
return KConfigGroup();
|
||||||
|
}
|
||||||
KConfigGroup cg = d->extender->d->applet->config("ExtenderItems");
|
KConfigGroup cg = d->extender->d->applet->config("ExtenderItems");
|
||||||
return KConfigGroup(&cg, QString::number(d->extenderItemId));
|
return KConfigGroup(&cg, QString::number(d->extenderItemId));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user