From ea9347e48f4d27123821178999e177c615c20a09 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 17 Apr 2008 11:36:20 +0000 Subject: [PATCH] check for toolbox existence, fixes a crash in plasmoidviewer svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=798068 --- containment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containment.cpp b/containment.cpp index 73a4a7a88..7b5295926 100644 --- a/containment.cpp +++ b/containment.cpp @@ -263,7 +263,7 @@ void Containment::containmentConstraintsUpdated(Plasma::Constraints constraints) d->toolbox->enableTool("addwidgets", !isImmutable()); } - if (constraints & Plasma::FormFactorConstraint) { + if (constraints & Plasma::FormFactorConstraint && d->toolbox) { if (formFactor() == Vertical) { d->toolbox->setOrientation(Qt::Vertical); //defaults to horizontal