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,9 +544,11 @@ void ExtenderItem::destroy()
|
||||
|
||||
//remove global entry if needed.
|
||||
Corona *corona = qobject_cast<Corona*>(scene());
|
||||
KConfigGroup extenderItemGroup(corona->config(), "DetachedExtenderItems");
|
||||
if (extenderItemGroup.hasGroup(QString::number(d->extenderItemId))) {
|
||||
extenderItemGroup.deleteGroup(QString::number(d->extenderItemId));
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user