From 2ac54f8f1949adcfe78288e7fd537fa3d002dbc7 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 25 Jul 2009 05:43:20 +0000 Subject: [PATCH] backport fix for widgets with X-KDE-ParentApp= in their metatdata.desktop svn path=/branches/KDE/4.3/kdelibs/; revision=1002136 --- applet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 4a9db18f0..435e07ff0 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1739,7 +1739,7 @@ KPluginInfo::List Applet::listAppletInfo(const QString &category, QString constraint; if (parentApp.isEmpty()) { - constraint.append("not exist [X-KDE-ParentApp]"); + constraint.append("(not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')"); } else { constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'"); } @@ -1810,7 +1810,7 @@ QStringList Applet::listCategories(const QString &parentApp, bool visibleOnly) QString constraint = "exist [X-KDE-PluginInfo-Category]"; if (parentApp.isEmpty()) { - constraint.append(" and not exist [X-KDE-ParentApp]"); + constraint.append("and (not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')"); } else { constraint.append(" and [X-KDE-ParentApp] == '").append(parentApp).append("'"); }