do not disconnect if there's nothing to disconnect
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737447
This commit is contained in:
parent
1c4dd4a05a
commit
7677e98e9f
4
view.cpp
4
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();
|
||||
|
Loading…
Reference in New Issue
Block a user