Add check on corona to avoid crash

CCBUG: 264844
This commit is contained in:
Nicolas Lécureuil 2011-05-22 22:33:06 +02:00
parent e20c152d4d
commit 2970dd2317

View File

@ -398,6 +398,11 @@ void ExtenderItem::setExtender(Extender *extender, const QPointF &pos)
}
Corona *corona = qobject_cast<Corona*>(scene());
if (!corona) {
return;
}
KConfigGroup extenderItemGroup(corona->config(), "DetachedExtenderItems");
if (isDetached()) {