Add check on corona to avoid crash
CCBUG: 264844
This commit is contained in:
parent
e20c152d4d
commit
2970dd2317
@ -398,6 +398,11 @@ void ExtenderItem::setExtender(Extender *extender, const QPointF &pos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Corona *corona = qobject_cast<Corona*>(scene());
|
Corona *corona = qobject_cast<Corona*>(scene());
|
||||||
|
|
||||||
|
if (!corona) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
KConfigGroup extenderItemGroup(corona->config(), "DetachedExtenderItems");
|
KConfigGroup extenderItemGroup(corona->config(), "DetachedExtenderItems");
|
||||||
|
|
||||||
if (isDetached()) {
|
if (isDetached()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user