take corona immutability into consideration as well

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781758
This commit is contained in:
Aaron J. Seigo 2008-03-03 18:03:27 +00:00
parent 054f4bd2f9
commit 6fc81a860f

View File

@ -589,12 +589,13 @@ bool Applet::isImmutable() const
{
return d->immutable || d->kioskImmutable ||
(containment() && containment()->isImmutable()) ||
(dynamic_cast<Corona*>( scene() ) && static_cast<Corona*>(scene())->isImmutable());
(dynamic_cast<Corona*>(scene()) && static_cast<Corona*>(scene())->isImmutable());
}
bool Applet::isKioskImmutable() const
{
return d->kioskImmutable;
Corona *c = dynamic_cast<Corona*>(scene());
return d->kioskImmutable || (c && c->isKioskImmutable());
}
void Applet::setImmutable(bool immutable)