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:
parent
0d42d36814
commit
bbcc79fc0e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user