add the app's main component name to the listing as a valid option

svn path=/trunk/KDE/kdelibs/; revision=1119854
This commit is contained in:
Aaron J. Seigo 2010-04-27 20:31:29 +00:00
parent 28386758e1
commit 15852ba68a

View File

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