the settings dialog for wallpaper n'stuff needs to respect security

svn path=/trunk/KDE/kdelibs/; revision=902697
This commit is contained in:
Chani Armitage 2008-12-28 23:45:27 +00:00
parent 227e28ffa9
commit c0496911af

View File

@ -1582,6 +1582,13 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
action->setText(unlocked ? i18n("Lock Widgets") : i18n("Unlock Widgets"));
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
foreach (Applet *a, applets) {