hides the panel toolbox when the whole desktop is locked

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809993
This commit is contained in:
Marco Martin 2008-05-19 20:49:44 +00:00
parent f6d290849f
commit 573f99e978

View File

@ -1052,6 +1052,14 @@ void Containment::Private::containmentConstraintsEvent(Plasma::Constraints const
foreach (Applet *a, applets) {
a->updateConstraints(ImmutableConstraint);
}
if (q->isContainment() && type == PanelContainment) {
if (unlocked) {
toolBox->show();
} else {
toolBox->hide();
}
}
}
if ((constraints & Plasma::SizeConstraint || constraints & Plasma::ScreenConstraint) &&