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();