I forgot to forwardport that security fix from 4.2 >.<

svn path=/trunk/KDE/kdelibs/; revision=923421
This commit is contained in:
Chani Armitage 2009-02-08 18:31:43 +00:00
parent 297b131e1d
commit b0e0bb161a

View File

@ -1053,12 +1053,10 @@ void Applet::flushPendingConstraintsEvents()
}
bool canConfig = unlocked || KAuthorized::authorize("PlasmaAllowConfigureWhenLocked");
if (canConfig) {
action = d->actions.action("configure");
if (action) {
action->setVisible(canConfig);
action->setEnabled(canConfig);
}
action = d->actions.action("configure");
if (action) {
action->setVisible(canConfig);
action->setEnabled(canConfig);
}
}