if destroy is called when the extenderitem is being deleted already it could not have a scene
svn path=/trunk/KDE/kdelibs/; revision=1177229
This commit is contained in:
parent
8992e628f8
commit
5560dc2b14
@ -544,10 +544,12 @@ void ExtenderItem::destroy()
|
||||
|
||||
//remove global entry if needed.
|
||||
Corona *corona = qobject_cast<Corona*>(scene());
|
||||
if (corona) {
|
||||
KConfigGroup extenderItemGroup(corona->config(), "DetachedExtenderItems");
|
||||
if (extenderItemGroup.hasGroup(QString::number(d->extenderItemId))) {
|
||||
extenderItemGroup.deleteGroup(QString::number(d->extenderItemId));
|
||||
}
|
||||
}
|
||||
|
||||
d->hostApplet()->config("ExtenderItems").deleteGroup(QString::number(d->extenderItemId));
|
||||
d->extender->d->removeExtenderItem(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user