get the connection right

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873121
This commit is contained in:
Aaron J. Seigo 2008-10-18 20:59:53 +00:00
parent b5df90348f
commit 62c417fe46

View File

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