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:
parent
28386758e1
commit
15852ba68a
@ -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("'");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user