check for existence of applet

svn path=/trunk/KDE/kdelibs/; revision=1129236
This commit is contained in:
Marco Martin 2010-05-21 18:09:15 +00:00
parent 7a8169685d
commit 19d0f06981

View File

@ -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));
} }