From 06d2502d2afef8fed651f6f50f6017d72de4aaf1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 3 Nov 2009 13:09:41 +0000 Subject: [PATCH] check the cast success: crash-- svn path=/trunk/KDE/kdelibs/; revision=1044329 --- containment.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containment.cpp b/containment.cpp index dd4666cf1..c97bed789 100644 --- a/containment.cpp +++ b/containment.cpp @@ -2170,7 +2170,9 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra toolBox->setVisible(unlocked); } else { InternalToolBox *internalToolBox = qobject_cast(toolBox); - internalToolBox->setIsMovable(unlocked); + if (internalToolBox) { + internalToolBox->setIsMovable(unlocked); + } } }