diff --git a/applet.cpp b/applet.cpp index b2c88fb54..ec7d2009a 100644 --- a/applet.cpp +++ b/applet.cpp @@ -604,7 +604,7 @@ bool Applet::isImmutable() const { return d->immutable || d->kioskImmutable || (containment() && containment()->isImmutable()) || - (scene() && static_cast(scene())->isImmutable()); + (dynamic_cast( scene() ) && static_cast(scene())->isImmutable()); } bool Applet::isKioskImmutable() const @@ -734,7 +734,7 @@ void Applet::checkImmutability() { d->kioskImmutable = globalConfig().isImmutable() || config().isImmutable() || (containment() && containment()->isKioskImmutable()) || - (scene() && static_cast(scene())->isKioskImmutable()); + (dynamic_cast( scene() ) && static_cast(scene())->isKioskImmutable()); setImmutable(d->kioskImmutable); }