check the cast success: crash--

svn path=/trunk/KDE/kdelibs/; revision=1044329
This commit is contained in:
Marco Martin 2009-11-03 13:09:41 +00:00
parent 52e5b9aca4
commit 06d2502d2a

View File

@ -2170,9 +2170,11 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
toolBox->setVisible(unlocked);
} else {
InternalToolBox *internalToolBox = qobject_cast<InternalToolBox *>(toolBox);
if (internalToolBox) {
internalToolBox->setIsMovable(unlocked);
}
}
}
//clear handles on lock
if (!unlocked) {