check the cast success: crash--
svn path=/trunk/KDE/kdelibs/; revision=1044329
This commit is contained in:
parent
52e5b9aca4
commit
06d2502d2a
@ -2170,7 +2170,9 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
|
||||
toolBox->setVisible(unlocked);
|
||||
} else {
|
||||
InternalToolBox *internalToolBox = qobject_cast<InternalToolBox *>(toolBox);
|
||||
internalToolBox->setIsMovable(unlocked);
|
||||
if (internalToolBox) {
|
||||
internalToolBox->setIsMovable(unlocked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user