From 7677e98e9f72528b3382a8a61a1c0da47982338f Mon Sep 17 00:00:00 2001 From: Andre Duffeck Date: Fri, 16 Nov 2007 08:52:09 +0000 Subject: [PATCH] do not disconnect if there's nothing to disconnect svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737447 --- view.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view.cpp b/view.cpp index f653d3adb..adc128684 100644 --- a/view.cpp +++ b/view.cpp @@ -98,7 +98,9 @@ int View::screen() const void View::setContainment(Containment *containment) { - disconnect(d->containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect())); + if( d->containment ) { + disconnect(d->containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect())); + } d->containment = containment; d->screen = containment->screen(); updateSceneRect();