From 2a34006fcd99b9fcd07970b7663bfacf59077282 Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Sat, 8 Dec 2007 09:16:06 +0000 Subject: [PATCH] Do not crash if the scene is not a Corona. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=746210 --- applet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }