From 0794c5ba8235d5ef40651fb5b9dbcf8a1250d573 Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Thu, 25 Jun 2009 06:45:11 +0000 Subject: [PATCH] enforce security. from now on, unsafe widgets won't show up in the screensaver's appletbrowser. svn path=/branches/KDE/4.3/kdelibs/; revision=986810 --- applet.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/applet.cpp b/applet.cpp index facca8b94..e475af532 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1784,10 +1784,9 @@ KPluginInfo::List Applet::listAppletInfo(const QString &category, //this isn't actually implemented in any bindings yet but should be possible for //anything but c++ } - //TODO 4.3 be very strict about what we accept - //if (!(reqValue == "Optional" || reqValue == "Unused")) { - //for testing purposes I'm being lax right now - if (reqValue == "Required") { + + if (!(reqValue == "Optional" || reqValue == "Unused")) { + //if (reqValue == "Required") { it.remove(); } }