disconnect d->containment, not containment :)

in some cases the view became without any active containment otherwise

svn path=/trunk/KDE/kdelibs/; revision=892260
This commit is contained in:
Marco Martin 2008-12-03 22:03:04 +00:00
parent 1c4f777dd4
commit 85ef865213

View File

@ -192,7 +192,7 @@ void View::setContainment(Plasma::Containment *containment)
}
if (d->containment) {
disconnect(containment, SIGNAL(destroyed(QObject*)), this, SLOT(containmentDestroyed()));
disconnect(d->containment, SIGNAL(destroyed(QObject*)), this, SLOT(containmentDestroyed()));
disconnect(d->containment, SIGNAL(geometryChanged()), this, SLOT(updateSceneRect()));
d->containment->removeAssociatedWidget(this);
}