the settings dialog for wallpaper n'stuff needs to respect security
svn path=/trunk/KDE/kdelibs/; revision=902697
This commit is contained in:
parent
227e28ffa9
commit
c0496911af
@ -1582,6 +1582,13 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
|
|||||||
action->setText(unlocked ? i18n("Lock Widgets") : i18n("Unlock Widgets"));
|
action->setText(unlocked ? i18n("Lock Widgets") : i18n("Unlock Widgets"));
|
||||||
action->setIcon(KIcon(unlocked ? "object-locked" : "object-unlocked"));
|
action->setIcon(KIcon(unlocked ? "object-locked" : "object-unlocked"));
|
||||||
}
|
}
|
||||||
|
if (!KAuthorized::authorize("PlasmaAllowConfigureWhenLocked")) {
|
||||||
|
action = actions().action("activity settings");
|
||||||
|
if (action) {
|
||||||
|
action->setVisible(unlocked);
|
||||||
|
action->setEnabled(unlocked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// tell the applets too
|
// tell the applets too
|
||||||
foreach (Applet *a, applets) {
|
foreach (Applet *a, applets) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user