From 15852ba68a5d7fa8d15a28dc6fc5fdfe1c28ff05 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 27 Apr 2010 20:31:29 +0000 Subject: [PATCH] add the app's main component name to the listing as a valid option svn path=/trunk/KDE/kdelibs/; revision=1119854 --- applet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 8832b5c63..6a6df47b8 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2118,7 +2118,9 @@ KPluginInfo::List Applet::listAppletInfo(const QString &category, const QString QString constraint; if (parentApp.isEmpty()) { - constraint.append("(not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '')"); + constraint.append("((not exist [X-KDE-ParentApp] or [X-KDE-ParentApp] == '') or [X-KDE-ParentApp] == '") + .append(KGlobal::mainComponent().aboutData()->appName()) + .append("')"); } else { constraint.append("[X-KDE-ParentApp] == '").append(parentApp).append("'"); }