protect access to toolBox pointer
CCBUG:179909 svn path=/branches/KDE/4.2/kdelibs/; revision=907207
This commit is contained in:
parent
e4e0337c1a
commit
f353a0dadc
@ -1597,10 +1597,12 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
|
|||||||
a->updateConstraints(ImmutableConstraint);
|
a->updateConstraints(ImmutableConstraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == Containment::PanelContainment || type == Containment::CustomPanelContainment) {
|
if (toolBox) {
|
||||||
toolBox->setVisible(unlocked);
|
if (type == Containment::PanelContainment || type == Containment::CustomPanelContainment) {
|
||||||
} else {
|
toolBox->setVisible(unlocked);
|
||||||
toolBox->setIsMovable(unlocked);
|
} else {
|
||||||
|
toolBox->setIsMovable(unlocked);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user