Do not crash if the scene is not a Corona.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=746210
This commit is contained in:
parent
80bbadc39f
commit
2a34006fcd
@ -604,7 +604,7 @@ bool Applet::isImmutable() const
|
|||||||
{
|
{
|
||||||
return d->immutable || d->kioskImmutable ||
|
return d->immutable || d->kioskImmutable ||
|
||||||
(containment() && containment()->isImmutable()) ||
|
(containment() && containment()->isImmutable()) ||
|
||||||
(scene() && static_cast<Corona*>(scene())->isImmutable());
|
(dynamic_cast<Corona*>( scene() ) && static_cast<Corona*>(scene())->isImmutable());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Applet::isKioskImmutable() const
|
bool Applet::isKioskImmutable() const
|
||||||
@ -734,7 +734,7 @@ void Applet::checkImmutability()
|
|||||||
{
|
{
|
||||||
d->kioskImmutable = globalConfig().isImmutable() || config().isImmutable() ||
|
d->kioskImmutable = globalConfig().isImmutable() || config().isImmutable() ||
|
||||||
(containment() && containment()->isKioskImmutable()) ||
|
(containment() && containment()->isKioskImmutable()) ||
|
||||||
(scene() && static_cast<Corona*>(scene())->isKioskImmutable());
|
(dynamic_cast<Corona*>( scene() ) && static_cast<Corona*>(scene())->isKioskImmutable());
|
||||||
setImmutable(d->kioskImmutable);
|
setImmutable(d->kioskImmutable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user