make items movable even on startup

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679835
This commit is contained in:
Aaron J. Seigo 2007-06-25 01:37:27 +00:00
parent 8c8012c1ce
commit 877f17a33d

View File

@ -171,7 +171,7 @@ void Applet::setImmutable(bool immutable)
QGraphicsItem::GraphicsItemFlags f = flags();
if (immutable) {
f ^= QGraphicsItem::ItemIsMovable;
} else if (scene() && !static_cast<Corona*>(scene())->immutable()) {
} else if (!scene() || !static_cast<Corona*>(scene())->immutable()) {
f |= QGraphicsItem::ItemIsMovable;
}
setFlags(f);