only allow configuration while widgets are unlocked

something went wrong, very wrong, when pulling from gitorious. I don't know what or why. but this is a copy of the last commit I made on my laptop...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834472
This commit is contained in:
Chani Armitage 2008-07-19 03:00:36 +00:00
parent 0d42d36814
commit bbcc79fc0e

View File

@ -55,6 +55,7 @@
#include <KShortcut>
#include <KWindowSystem>
#include <KActionCollection>
#include <KAuthorized>
#include <Solid/PowerManagement>
@ -736,6 +737,13 @@ void Applet::flushPendingConstraintsEvents()
action->setVisible(unlocked);
action->setEnabled(unlocked);
}
if (!KAuthorized::authorize("PlasmaAllowConfigureWhenLocked")) {
action = d->actions.action("configure");
if (action) {
action->setVisible(unlocked);
action->setEnabled(unlocked);
}
}
}
if (c & Plasma::SizeConstraint && d->needsConfigOverlay) {