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("'"); }