From b0e0bb161a3517f327c868e2430b4ec6c6a1a84c Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Sun, 8 Feb 2009 18:31:43 +0000 Subject: [PATCH] I forgot to forwardport that security fix from 4.2 >.< svn path=/trunk/KDE/kdelibs/; revision=923421 --- applet.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/applet.cpp b/applet.cpp index a46e6bdb7..532e294da 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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); } }