disable the settings action when it's darn well supposed to be disabled

svn path=/branches/KDE/4.2/kdelibs/; revision=916332
This commit is contained in:
Chani Armitage 2009-01-25 04:24:22 +00:00
parent ce3cf3943c
commit 107173a80e

View File

@ -1602,12 +1602,10 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
}
bool canConfig = unlocked || KAuthorized::authorize("PlasmaAllowConfigureWhenLocked");
if (canConfig) {
action = actions().action("activity settings");
if (action) {
action->setVisible(canConfig);
action->setEnabled(canConfig);
}
action = actions().action("activity settings");
if (action) {
action->setVisible(canConfig);
action->setEnabled(canConfig);
}
// tell the applets too